body {
  font-family: Arial, sans-serif;
  padding: 20px;
  margin: 0;
}




.container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 30px;
  height: 80vh;
  /* À§ÂÊ ¿©¹é Ãß°¡ */
  padding-top: 50px;
}





.image-area {
  flex: 1 1 70%;
  max-width: 70%;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  background: #f9f9f9;


  /* ÀÌ¹ÌÁö °¡¿îµ¥ Á¤·ÄÀ» À§ÇÑ Flexbox ¼³Á¤ */
  display: flex;
  justify-content: center; /* °¡·Î °¡¿îµ¥ Á¤·Ä */
  align-items: center;     /* ¼¼·Î °¡¿îµ¥ Á¤·Ä */
}


.image-area img {
  max-width: 100%;
  height: auto;
  display: block;
}




.form-area {
  flex: 1 1 30%;
  max-width: 30%;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  background: #f9f9f9;
  position: relative; /* ±âÁØ À§Ä¡ */
  padding-bottom: 80px; /* °íÁ¤µÈ h2 ³ôÀÌ¸¸Å­ ¿©À¯ (80pxÀ¸·Î ´Ã¸²) */
}




.section-title {
  display: block;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ddd;
  color: #444;
}




.horizontal-group {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
font-size:12px;
}




.horizontal-group label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}




input[type="checkbox"],
input[type="radio"] {
  margin-right: 8px;
  cursor: pointer;
}




button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 13px;
  cursor: pointer;
}




h2 {
  margin-top: 20px;
}


@media print {
  .form-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    box-sizing: border-box !important;
  }
}




/* ¸ð¹ÙÀÏ È­¸é (max-width: 768px) */
@media screen and (max-width: 768px) {
  html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* ÀüÃ¼ ÆäÀÌÁö ½ºÅ©·Ñ ¹æÁö */
  }




  .container {
    flex-direction: column;
    height: 100vh; /* ÀüÃ¼ È­¸é ³ôÀÌ */
 padding-top: 5px;
  }




  .image-area {
    max-width: 100%;
    height: 250px; /* ¿øÇÏ´Â ³ôÀÌ·Î °íÁ¤ */
    overflow: hidden;
    margin-bottom: 0;
    flex: 0 0 auto;
  }




  .form-area {
    max-width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    height: calc(100vh - 300px); /* ÀÌ¹ÌÁö Á¦¿ÜÇÑ ³ª¸ÓÁö ³ôÀÌ */
    position: relative;
    padding-bottom: 60px; /* °íÁ¤µÈ h2 ³ôÀÌ¸¸Å­ ¿©À¯ ÁÜ */
    box-sizing: border-box;
  }




  /* ¸ð¹ÙÀÏ¿¡¼­ h2¸¦ È­¸é ÇÏ´Ü¿¡ °íÁ¤ ¹× ¹ÝÀÀÇü ÆùÆ® Å©±â */
  .form-area h2 {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f9f9f9;
    padding: 10px 20px;
    border-top: 1px solid #ccc;
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.4;
    z-index: 1000;
    box-sizing: border-box;
    margin: 0; /* ±âº» margin Á¦°Å */
  }
}




/* PC È­¸é (min-width: 769px) - form-area ³»ºÎ ÇÏ´Ü¿¡ °íÁ¤ ¹× ¹ÝÀÀÇü ÆùÆ® Å©±â */
@media screen and (min-width: 769px) {
  .form-area {
    position: relative;
    padding-bottom: 80px; /* ÃæºÐÇÑ °ø°£ È®º¸ */
  }




  .form-area h2 {
    position: sticky;
    bottom: -80px;
    left: 0;
    width: 100%;
    background: #f9f9f9;
    border-top: 1px solid #ccc;
    padding: 10px 20px;
    margin: 0;
    box-sizing: border-box;
    z-index: 10;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);




    /* ¹ÝÀÀÇü ÆùÆ® Å©±â */
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.4;
  }
}