@charset "UTF-8";

@charset "UTF-8";

/* h1 全体のスタイル */
.contact-box h1 {
    text-align: center;
    margin: 40px 0;
    font-family: 'Arial', sans-serif;
    position: relative;
    padding-bottom: 50px;
    background-color: #CFEAF8;
    border-bottom: 4px solid #007BFF; /* 下線を追加 */
}

/* 英語タイトルのスタイル */
.contact-box .en {
    display: block;
    font-size: 22px;
    letter-spacing: 4px;
    color: #007BFF;
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 英語タイトルに影を追加 */
}

/* 日本語タイトルのスタイル */
.contact-box .ja {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    position: relative;
    line-height: 1.5; /* 行間を少し広げる */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 日本語タイトルに影を追加 */
}

.contact-box {
    padding-bottom: 100px;
}


/* フォームスタイル */
.contact-form {
    max-width: 600px;
    margin: 0 10px;
    background-color: #fff;
    padding: 20px 5px;
    border-radius: 8px;

}

/* 入力フィールドとラベル */
.form-group {
    margin-bottom: 20px;
    position: relative; /* ツールチップの基準位置 */
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
/* 名前の姓と名を横並びに配置 */
.name-group .name-fields {
    display: flex;
    gap: 10px; /* 姓と名の間にスペースを追加 */
}

.name-group .name-fields input {
    flex: 1; /* フィールドを均等に広げる */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

/* 姓と名の入力フィールドのスタイル */
.name-group input:focus {
    border-color: #0E98DD; /* フォーカス時の枠線の色 */
    outline: none;
}

/* フォームラベルのスタイル */
.name-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.required {
    color: red;
    margin-left: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease; /* フォーカス時に視覚効果 */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #0E98DD; /* フォーカス時に色を変更 */
    outline: none; /* デフォルトのアウトラインを削除 */
}

textarea {
    resize: vertical;
}

/* ツールチップのデザイン */
.tooltip {
    display: none;
    position: absolute;
    background-color: #f44336;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    top: calc(100% + 5px); /* 入力フィールドの下に配置 */
    left: 10px; /* 左に余白を持たせる */
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap; /* 折り返しを防止 */
}

/* ツールチップ表示 */
.tooltip.visible {
    display: block;
    animation: fadeIn 0.3s ease; /* ツールチップのフェードイン効果 */
}

/* ツールチップのアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ボタンスタイル */
.btn-submit {
    background-color: #0E98DD;
    color: white;
	text-decoration: none;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #007BFF;
}


.complete {
	text-align: center;
}
.complete h2 {
	color: #0E98DD;
	font-size: 22px;
	font-weight: bold;
	display: block;
}
.complete p {
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	margin-top: 20px;
	display: block;
}
.complete span {
	color: #BBBBBB;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.4;
	margin-top: 20px;
	display: block;
}
.form-actions {
	width: 300px;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
	margin-top: 20px;
}
.form-actions a {
	display: block;
}