* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: "Yu Gothic", "Meiryo", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

header {
    background-color: #7AB0BB; 
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
}

a {
  background: none;
  text-decoration: none;
    outline: none;
  border: none;
}

a:hover {
  background: none;
}

img {
    display: block;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

button:hover {
  background: none;
}


.header-inner {
    max-width: 1300px;
    height: 50px;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.header-inner img {
    width: 100%;
    max-width: 310px;
    height: auto;
}

main {
    background-color: #FFFCEA;
    min-height: 100vh;
    padding: 20px;
    font-size: 1rem;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
}

button {
    background: none;
    border: none;
    padding: 0;
    margin: 0 auto;
    cursor: pointer;
    display: block;
}

button img {
    width: 20rem;
    height: auto;
}

.main_pc,
.main_mobile {
    display: none;
}

.img_content a {
    display: block;
    padding: 0;
    margin: 0;
    border: none;
    text-decoration: none;
    line-height: 0;
}

.img_content > img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}

.overlay-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
}

.base-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay-scroll {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
}

.overlay-img {
    padding-top: 32%;
    padding-left: 5%;
    padding-right: 5%;
    height: 70%;
    display: inline-block;
    max-width: none !important;
    width: auto !important;
}

.overlay-img-apply{
    margin-top: -5%;
    padding-top: 16%;
    padding-left: 5%;
    padding-right: 5%;
    height: 100%;
    display: inline-block;
    max-width: none !important;
    width: auto !important;
}

.register-1 {
    font-size: 14px;
    padding: 30px 0 10px 0;
}

.register-2 {
    font-size: 12px;
    padding: 0px 10vw;
}

.success{
    margin: 30px;line-height: 2rem;
}

.success-button{
    margin: 3vw auto 0 auto;
    width: 30vw;
}

.submit-1 {
    font-size: 1.4rem;
    padding: 10px 0 10px 0;
}

.submit-2 {
    font-size: 1rem;
    padding: 0px 0.1vw;
}

.image-container-with-buttons {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.image-container-with-buttons img {
  display: block;
  width: 100%;
  height: auto;
}

.order-header {
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.order-header img {
  width: 100%;
  height: auto;
  display: block;
    max-height: 160px;
}

.order-content{
    margin: 15px auto;
    width: 60%;
    text-align: left;
}

.order-desc{
    color: gray;
    margin-bottom: 20px;
}

.order-info{
    width: 100%;
    background-color: white;
    padding: 15px;
    border: 1px solid black;
    margin-bottom: 30px;
}

.order-info-title{
    font-size: 20px;
    font-weight: bold;
    color:#FE3029;
}

.order-price{
    display: flex;
  justify-content: space-between;
  align-items: center;
/*  padding: 15px 20px;*/
/*  background-color: #f2f2f2;*/
  font-size: 14px;
}

.price-left,
.price-right {
  color: #000;
}


.credit-form {
/*  max-width: 70vw;*/
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.cc-wrapper { display:flex; align-items:center; gap:4px; }
.cc-part { width:60px; text-align:center; padding:5px; font-size:16px; }
.cc-wrapper span { font-size:18px; }

.form-row {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="text"] {
  width: 100%;
  padding: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group-inline {
  display: flex;
  gap: 15px;
}

.form-group-inline > div {
  flex: 1;
}

button[type="submit"] {
/*  padding: 10px 20px;*/
    margin: 10px auto 20px auto;
  font-size: 1rem;
/*  background-color: #0070c9;*/
  color: white;
  border: none;
  cursor: pointer;
}

button[type="submit"]:hover {
/*  background-color: #005fa3;*/
}




.floating-with-buttons-group {
  position: absolute;
  top: 38%;       /* 微調垂直位置 */
  left: 50%;      /* 水平中心點 */
  transform: translateX(-50%);
  display: flex;   /* 關鍵：水平排列 */
  gap: 10px;        按鈕之間的間距 
  z-index: 10;     /* 確保在圖片上方 */
}

.floating-with-buttons {
  display: inline-block!important;
}


.floating-with-buttons img {
/*  width: 60px;      或依圖片原始尺寸調整 */
  height: auto;
  display: block;
}

.floating-with-buttons-group1 {
      position: absolute;
    top: 35.5%;
    left: 20%;
    display: flex;
    gap: 20px;
    z-index: 10;
    width: 55.5%;
}

.floating-with-buttons1 {
  display: inline-block!important;
}

.floating-with-buttons1 img {
  width: 120%;
  height: auto;
  display: block;
}

.styled-img,
.image-container {
 position: relative;
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.image-container img {
  display: block;
  max-width: 100%;
  height: auto;
    width:
}


.overlay-container {
  position: relative;
  display: inline-block;
  overflow: hidden; /* 防止圖片或按鈕溢出 */
}

.base-img {
  display: block;
  max-width: 100%;
}

.overlay-scroll {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;  /* 允許水平捲動 */
  overflow-x: auto;     /* 水平捲動條 */
}


.floating-button {
      position: absolute;
    bottom: 15%;
    right: 25%;
    width: 49vw;
    max-width: 625px;
    height: auto;
}

.floating-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.input-form {
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.input-form input[type="email"] {
    padding: 5px;
    font-size: 16px;
    width: 255px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-form button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    margin-top: 10px;
}

.input-form button img {
    padding-top: 15px;
    height: auto;
    width: 20rem;
    display: block;
}

textarea {
    width: 100%;
    max-width: 750px;
    height: 5rem;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-sizing: border-box;
    resize: vertical;
}

input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding: 10px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
}

.radio-group {
    max-width: 750px;
    margin: 0 auto 0.5rem auto;
    text-align: left;
}

.radio-group p {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    display: inline-block;
    padding: 7px 20px;
    margin: 10px 5px;
    border-radius: 15px;
    background-color: #f2f2f2;
    cursor: pointer;
    transition: all 0.2s;
}


.info {
  display: inline-block;
  padding: 5px 15px;
  background: yellow;
  border-radius: 5px;
  position: relative;
  margin: 10px 0px 15px 0px;
}

.info::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 28px;
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: yellow transparent transparent transparent;
}

.info-content{
    display: inline-block;
    background-color: white;
    padding: 15px 20px;
    margin: 30px auto;
    text-align: left;
    font-size: 14px;
}

input[type="radio"][value="yes"]:checked + label {
    background-color: #28df79;
    color: white;
    border-color: #28df79;
}
input[type="radio"][value="no"]:checked + label {
    background-color: #df2a2a;
    color: white;
    border-color: #df2a2a;
}
input[type="radio"][value="na"]:checked + label {
    background-color: #999999;
    color: white;
    border-color: #999999;
}


.warning {
  display: none;
  background-color: #FFDADA;
  color: #df2a2a;
  padding: 15px;
  margin-top: 10px;
  border-radius: 10px;
  font-weight: bold;
  max-width: 500px;
}

.material-icons {
  vertical-align: middle;
  font-size: 1.4em;
  margin-right: 10px;
}

.info-NG{
    display: inline-block;
    background-color: red;
    color: white;
    padding: 15px;
    font-size: 16px;
    margin: 10px;
}

.info-NG1{
    display: block;
    background-color: yellow;
    padding: 15px;
    margin: 10vw 30vw;
}

.info-NG2{
    display: block;
    background-color: white;
    padding: 15px;
}

.recommand-title{
    color: #FE3029;
    font-size: 2rem;
    margin-top: 18px;
}

.recommand-info{
    font-size: 16px;
    margin-top: 18px;
}

.recommand-detail{
    margin: 30px auto;
    background-color: white;
    width: 38%;
    padding: 22px 35px;
    box-shadow: 3px 3px 5px #ccc;
}

.detail-title{
    background-color: #CCC;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    margin: 5px auto 15px auto;
    font-weight: bold;
}

.detail-content{
    text-align: left;
}

.detail-ok{
    color: #FE3029;
}

.remark{
    font-size: 14;
}

.floating-icon {
    position: fixed;
    top: 4px;
    right: 22%;
    width: 12rem;
    height: auto;
    z-index: 999;
    pointer-events: none;
    opacity: 0.8;
}

.floating-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.fixed-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateY(20px);
  z-index: 999;
}

.fixed-button img {
    width: 20vw;
}

.fixed-button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rp-hint{
    display: none;
    margin-top: 10px;
    font-size: 13px;
    background-color: #fed9d9;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    line-height: 22px;
}


.plan-select {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.plan-select input[type="radio"] {
  display: none;
}

.plan-select label {
  flex: 1;
  padding: 1rem 0;
  background: #f0f0f0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: #333;
  user-select: none;
  transition: background-color 0.3s, color 0.3s;
}

.plan-select input[type="radio"][value="Y"]:checked + label {
  background: #2cc971;
  color: white;
}

.plan-select input[type="radio"][value="N"]:checked + label {
  background: #9c9a9a;
  color: white;
}

.rp-info{
    width: 100%;
    background-color: white;
    padding: 15px;
    border: 1px solid black;
    margin: 30px 0px 0px 0px;
    font-size: 14px;
    font-weight: normal;
    color:#FE3029;
}

.rp-yes-btn {
    margin: 20px auto 15px auto;
    background: #f0f0f0;;
    border: none;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
  }

.rp-yes-btn:hover {
background: #2cc971;
    color:white;
}

 .order_btn {
    background-color: #007BFF; /* 藍色底色 */
    color: white;              /* 字體顏色白色 */
    border: none;             /* 移除邊框 */
        width: 15vw;
    padding: 15px;   /* 內距 */
     margin-top: 40px;
    border-radius: 4px;       /* 圓角 */
    cursor: pointer;          /* 滑鼠變成手指 */
     border-radius: 8px;
     background-color: #2cc971
  }

  .order_btn:hover {
    background-color: #2cc971; /* 滑鼠移上去時的顏色 */
  }


.order_btn{
    width: 30rem;
}

.rp_info{
        padding-top: 10px;
    margin: 0 auto 0 auto;
    font-size: larger;
    font-weight: bold;
    background-color: #fef9e5;
    max-width: 1200px;
    height: 60px;
}

.register_info{
        font-size: 0.8rem;
    margin-left: 3%;
    padding: 0 15% 0 0;
}

.rp-pdf{
    position: relative;
    bottom: 55px;
    text-decoration: underline!important;
    font-weight: bold;
    background-color: transparent;
    color: blue;
}

@media (min-width: 769px) {
    .main_pc {
        display: block;
    }
}

@media (max-width: 768px) {
    img{
        max-width:100vw;
    }
    
    .main_mobile {
        display: block;
    }
    
    .overlay-container {
        max-width: 100%;
    }
    
    .overlay-img {
        padding-top: 75%;
        height: 62%;
    }
    
    .overlay-img-apply{
        margin-top: 15%;
        padding-left: 5%;
        padding-right: 5%;
        height: 80%;
        display: inline-block;
        max-width: none !important;
        width: auto !important;
    }
    
    .overlay-img-apply1{
        margin-top: 37%;
        padding-left: 5%;
        padding-right: 5%;
        height: 53%;
        display: inline-block;
        max-width: none !important;
        width: auto !important;
    }
    
    main {
        background-color: #FFFCEA;
        min-height: 100vh;
        padding: 20px;
        font-size: 0.8rem;
    }
    
    .recommand-detail{
        width: 100%;
        padding: 15px;
    }
    
    .floating-icon {
        top: 10px;
        right: 4%;
        width: 11rem;
    }
    
    .fixed-button img {
        margin-left: 14%;
        width: 50vw;
    }
    
    .success{
        margin: 30px 0px;line-height: 2rem;
    }
    
    .success-button{
        margin-top: 15vw;
        width: 70vw;
            margin: 0 auto;
    }
    
    .submit-2 {
    font-size: 12px;
    }
    
    .order-content{
        width: 100%;
    }
    
    .order-btn{
        width: 15rem;
    }
    
    .overlay-container{
        display: block;
    }
    
    .overlay-container1 {
        position: relative;
        width: 100vw;   /* 滿版寬 */
        height: 100vh;  /* 滿版高，可依需求調整 */
        overflow: hidden;
    }
    
    .floating-with-buttons-group1 {
        top: 33%;
        left: 5%;
        gap: 10px;
        z-index: 10;
        width: 96%;
    }
    
    .overlay-scroll1 {
        position: absolute;
        top: 55px;
        left: 0;
        white-space: nowrap;
        overflow-x: auto;
        height: 100%;
        width: 100%;
    }
    
    .buttons-group2 {
        top: 33%;
        left: 5%;
        gap: 23px;
        z-index: 10;
        width: 100%;
    }
    
    .rp_info{
        background-color: #fefcef
    } 
    
    .register_info{
        padding: 0;
    }
    
    .floating-button {
     width:100%;   
    }
    
    .rp-pdf{
        bottom: 0;
        padding-top: 15px;
        padding-bottom: 25px;
        display: block;
        background-color: #f6fdff!important;
    }
}