*{
box-sizing:border-box;
}

h2{
text-align:center;
margin-top:20px;
}

#loadingOverlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.6);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
color:white;
font-size:28px;
font-weight:bold;
}

.btn-main{
display:inline-block;
padding:12px 28px;
margin:10px;
border:none;
border-radius:8px;
background:#4CAF50;
color:#fff;
font-size:16px;
font-weight:bold;
cursor:pointer;
text-decoration:none;
transition:0.2s;
}

.btn-main:hover{
background:#43a047;
}

.btn-sub{
background:#9e9e9e;
color:#fff;
}

.btn-sub:hover{
background:#8e8e8e;
}

.footer-menu{
position:fixed;
bottom:0;
left:0;
width:100%;
background:#fff;
border-top:1px solid #ddd;
padding:12px;
text-align:center;
box-shadow:0 -2px 8px rgba(0,0,0,0.1);
}

.footerBtn{
display:inline-block;
padding:12px 30px;
background:#9e9e9e;
color:#fff;
text-decoration:none;
border-radius:8px;
font-weight:bold;
text-align:center;
}

.footerBtn:hover{
filter:brightness(0.9);
}



.container{
width:100%;
max-width:900px;
margin:auto;
padding:0 10px;
}

.card{
padding:25px;
}

.form-grid{
display:grid;
grid-template-columns:140px 1fr;
gap:12px;
align-items:center;
}

.form-grid input{
width:100%;
padding:10px;
font-size:16px;
border:1px solid #ccc;
border-radius:4px;
/* 高さを統一 */
height: 45px;
}

/* ★修正部分：date入力をtextと同じ見た目にする */
.form-grid input[type="date"]{
appearance: none;
-webkit-appearance: none;
/* date特有の内部余白をリセット */
padding: 10px;
/* 他の入力欄と完全に幅を合わせる */
box-sizing: border-box;
display: block;
}

/* スマホ */

@media (max-width:700px){

.menuGrid{
width:100%;
padding:0 10px;
}

/* フォームカード */

.container{
width:100%;
padding:0 10px;
}

.card{
padding:20px;
}

/* タイトル */

.card h3{
font-size:20px;
margin-bottom:10px;
white-space:nowrap;
}

/* フォーム */

.form-grid{
display:grid;
grid-template-columns:110px 1fr;
gap:10px;
align-items:center;
}

.form-grid label{
font-size:14px;
font-weight:bold;
}

.form-grid input{
font-size:16px;
padding:10px;
width:100%;
/* スマホでも高さを維持 */
height: 45px;
}

/* ★修正部分：スマホでもdateの見た目を統一 */
.form-grid input[type="date"]{
appearance: none;
-webkit-appearance: none;
width: 100%;
}

/* ボタン */

.btn-main{
font-size:16px;
padding:12px 18px;
border-radius:10px;
white-space:nowrap;
width:auto;
margin:6px;
}

.footerBtn{
font-size:18px;
padding:14px 22px;
}

h2{
font-size:18px;
}

body{
padding-bottom:120px;
}

}