/* Google FontsからPoppinsフォントをインポート */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* 全体のスタイル */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 上下に要素を配置 */
}

/* コンテナ全体のデザイン */
.container {
    background-color: white;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding:50px 20px 100px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    flex-grow: 1;
}

/* 見出しと画像のレイアウト */
h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

h1::before {
    content: '';
    display: inline-block;
    width: 60px;
    height: 60px;
    background-image: url('https://bonworld.jp/img/tracking_icon.png');
    background-size: cover;
    border-radius: 22%; /* 角丸をiPhoneのアイコン風に */
    margin-right: 15px; /* アイコンとテキストの間隔を調整 */
}

/* pタグのスタイルを移動 */
p {
    text-align: center;
    font-size: 90%;
}

/* 各入力グループのスタイル */
.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-group label {
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.input-group input, 
.input-group select {
    padding: 0 10px;  /* 左右の余白のみを設定 */
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    background-color: #f0f8ff;
    height: 42px; /* 高さを統一 */
    line-height: 42px; /* テキストが中央揃えされるように設定 */
    box-sizing: border-box; /* paddingを含めた高さを正確に計算 */
}

.input-group input:focus, 
.input-group select:focus {
    border-color: #007BFF;
    outline: none;
}

/* ボタンのスタイリッシュなデザイン */
.action-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #007BFF, #00d4ff);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.4s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.action-button:hover {
    background: linear-gradient(45deg, #0056b3, #00b0d4);
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.action-button:active {
    background: linear-gradient(45deg, #004494, #0088aa);
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* フォームのレスポンシブ対応 */
@media (max-width: 600px) {
    .container {
        padding: 50px 15px 100px;
    }

    .input-group input, 
    .input-group select {
        font-size: 14px;
        padding: 0 10px;  /* 左右の余白のみ調整 */
        height: 42px; /* モバイルでもフォームの高さを統一 */
        line-height: 42px; /* テキストが中央揃えされるように設定 */
    }

    h1 {
        font-size: 20px;
    }
}
