/* 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/volume_icon.png');
    background-size: cover;
    border-radius: 22%; /* 角丸をiPhoneのアイコン風に */
    margin-right: 15px; /* アイコンとテキストの間隔を調整 */
}

.container p{
    text-align: left;
    color: #333;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    color: #333;
}


.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.input-group {
    display: flex;
    align-items: center;
}

input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
    background-color: #f0f8ff;
}

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;
    font-family: 'Poppins', sans-serif;
    transition: background 0.4s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

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

.result {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #4a90e2;
    border-radius: 10px;
    background-color: #f0f8ff;
    color: #333;
    text-align: left;
    width: 100%;
    box-sizing: border-box; /* 結果がはみ出さないように幅を正確に計算 */
    overflow-wrap: break-word; /* 長い単語がはみ出さないように折り返し */
}

#volumeWeight {
    font-size: 20px;
    color: #333;
}


@media (max-width: 768px) {
    .container {
        padding: 50px 15px 100px;
    }

    h1 {
        font-size: 24px;
    }

    button {
        font-size: 16px;
    }

    #volumeWeight {
        font-size: 18px;
    }
	
    .back-to-home {
        width: 70%; /* モバイルデバイスでは少し大きくする */
    }	
	
}
