/****************
Apply
****************/

header {
    text-align: center;
}

dd,dt{
    margin: 0;
}

.apply-info{
    text-align: center;
    padding:18px;
    box-sizing: border-box;
}

select {
    appearance: none;  /* ブラウザ固有のデザインを無効化 */
    -webkit-appearance: none;  /* Safari対応 */
    -moz-appearance: none;  /* Firefox対応 */
    background-color: #fff;
    border: 3px solid #ebebeb;
    border-radius: 6px;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

select:focus {
    border-color: #00829B;
    outline: none;  /* デフォルトのアウトラインを消す */
}


input[type=select], input[type=text], input[type=email], input[type=url], 
input[type=password], input[type=search], input[type=tel], textarea{
    color: #666;
    border: 3px solid #ebebeb;
    border-radius: 3px;
    font-weight: 400;
    transition: border-color 0.3s ease; 
}

input[type=select]:focus, input[type=text]:focus, input[type=email]:focus, input[type=url]:focus, 
input[type=password]:focus, input[type=search]:focus, input[type=tel]:focus, textarea:focus{
    border-color: #00829B;
    outline: none;
}

input[type=select], input[type=text], input[type=email], input[type=url], 
input[type=password], input[type=search], input[type=tel]{
    font-size: 1rem;
    width: 100%;
}

button, input, select, textarea{
    margin: 0;
    vertical-align: baseline;
    padding: 8px;
    box-sizing: border-box;
}

textarea{
    overflow: auto;
    box-sizing: border-box;
    padding-left: 8px;
    vertical-align: top;
    width: 100%;
    font-size: 1rem;
    line-height: 1.8;;
}

/* デフォルトのチェックボックスを非表示 */
input[type="checkbox"] {
    display: none;
}

/* カスタムチェックボックスのスタイル */
input[type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #ebebeb;
    border-radius: 6px; /* 角丸にする */
    background-color: #fff;
    margin-right: 10px;
    transition: background-color 0.3s, border-color 0.3s;
}

/* チェックが入ったときのスタイル */
input[type="checkbox"]:checked + label::before {
    background-color: #00829B;
    border-color: #00829B;
}

/* チェックマークのスタイル */
input[type="checkbox"]:checked + label::after {
    content: "✔";
    position: absolute;
    font-size: 18px;
    color: #fff;
    left: 8px;
    top: 0;
}

/* チェックボックスのラベルのスタイル */
input[type="checkbox"] + label {
    position: relative;
    cursor: pointer;
    font-size: 1rem;
    line-height: 24px;
    display: inline-flex;
    align-items: center;
    margin:0 20px 20px 0;
}

::placeholder {
    color:#a5a5a5; /* 黒を50%の透明度で表示 */
  }

  /* ブラウザ互換性のための指定 */
  :-ms-input-placeholder { /* Internet Explorer 10+ */
    color:#a5a5a5;
  }
  ::-ms-input-placeholder { /* Microsoft Edge */
    color:#a5a5a5;
  }

#formWrap{
	width:100%;
	max-width: 980px;
	margin:0 auto 60px auto;
    padding-top:150px;
}

.inquiry_form{
	width:90%;
	max-width: 620px;
	margin:auto;
	text-align: left;
	padding:60px;
    box-sizing: border-box;
    background-color: #efefef;
    border-radius: 20px;
}

.inquiry_form dt{
	margin-bottom:8px;
    font-weight: 700;
}

.inquiry_form dd{
	margin-bottom:35px;
}

.required {
    font-size: .8em;
    padding: 3px 5px;
    background: #ff5f5f;
    color: #fff;
    border-radius: 2px;
    margin-right: 5px;
    position: relative;
	bottom: 1px;
	right:0;
}

.any {
    font-size: .8em;
    padding: 3px 5px;
    background: #ccc;
    color: #fff;
    border-radius: 2px;
    margin-right: 5px;
    position: relative;
    bottom: 1px;
}

.btn-wrap {
    display: flex;
    gap: 10px; /* ボタン間の間隔 */
    justify-content: center; /* 中央揃え */
    margin-top: 20px;
}

/* 共通のボタンスタイル */
.btn-wrap input[type="submit"],
.btn-wrap input[type="reset"] {
    background-color: #057DD3; /* 緑系の色 */
    color: white;
    border: none;
    font-weight: 700;
    padding: 12px 30px; /* 内側の余白 */
    font-size: 16px;
    border-radius: 50px; /* 角丸 */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ホバー時の変化 */
.btn-wrap input[type="submit"]:hover {
    background-color: #1e90e2; /* ホバー時の色 */
    transform: scale(1.05); /* 少し拡大してクリック感を出す */
}

.btn-wrap input[type="reset"]:hover {
    background-color: #ff5f5f; /* リセットボタンは赤 */
}

/* フォーカス時（アクセシビリティ対応） */
.btn-wrap input:focus {
    outline: 2px solid #057DD3;
    outline-offset: 3px;
}


@media screen and (max-width: 767px) {

    .inquiry_form{
        padding:50px 25px;
    }
    
}