@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+TC:wght@200..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

.Bickham-Script-Pro-3-Regular {
  font-family: "bickham-script-pro-3", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lora-Regular {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.lora-Bold {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

body,
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
  --vw-base: calc(100vw / 1920);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* 右端要被裁掉的距離 */
  --line-shift: 1.35vw;
  background-color: #f3eee7;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

button,
input,
textarea,
select,
option {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  border-radius: 0;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

ul,
ol {
  /* list-style: none; */
  padding: 0;
  padding-left: 1.5em;
  margin: 0;
}

.acc-inner-txt ol ul {
  list-style-type: disc;
}

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

video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.container {
  width: 100%;
  height: auto;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

.no-scroll {
  overflow: hidden;
  /* 禁止滚动条 */
  touch-action: none;
  /* 禁止移动端触摸滚动 */
  position: fixed;
  /* 防止页面跳動 */
  width: 100%;
  height: 100vh;
}

.opacity {
  opacity: 1;
  position: relative;
  visibility: visible;
}

/*影片區*/
.main1 {
  position: relative;
  width: 100%;
  height: calc(950 * var(--vw-base));
  background-color: #f3eee7;
  /* 確保超出容器的部分被隱藏，達成裁切感 */
  overflow: hidden;
}

/* 這裡維持你的動畫觸發 */
.main1.active {
  animation: m1-bg-motion 1.5s forwards;
  /* 移除 alternate 避免來回彈跳，除非你原本就需要 */
  animation-delay: 0s;
  animation-timing-function: ease-out;
}

.m1-bg {
  width: 100%;
  /* 初始高度與容器一致 */
  height: calc(950 * var(--vw-base));
  position: relative;
  margin: 0 auto;
  z-index: 98;
  overflow: hidden;
  /* 重要：裁切關鍵 */
}

/* 動畫改為縮減容器高度 */
@keyframes m1-bg-motion {
  0% {
    height: calc(950 * var(--vw-base));
  }

  100% {
    height: calc(760 * var(--vw-base));
  }
}

.m1-bg img {
  object-fit: cover;
  width: 100%;
  /* 關鍵：高度固定為原始高度，不要隨父層縮放 */
  height: calc(950 * var(--vw-base));
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}


.m1-txt {
  width: 100%;
  height: calc(520*var(--vw-base));
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 105;
  overflow: hidden;
}

.m1-t1 {
  color: rgba(255, 255, 255, 0.2);
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: calc(48 * var(--vw-base));
  line-height: 3vw;
  letter-spacing: 0em;
  transform: scaleX(0.95);
  transform-origin: left center;
  writing-mode: vertical-rl;
  display: block;
  position: absolute;
  left: 12.6vw;
  top: 0.4vw;
  width: calc(50 * var(--vw-base));
  height: calc(260 * var(--vw-base));
  overflow: hidden;
  opacity: 0;
  letter-spacing: 0.1vw;
}

.m1-t2 {
  color: rgba(255, 255, 255, 0.6);
  line-height: 3vw;
  font-size: calc(22 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.2em;
  font-weight: 600;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
  position: absolute;
  left: 12.75vw;
  top: 13.3vw;
  width: calc(120 * var(--vw-base));
  height: calc(50 * var(--vw-base));
  overflow: hidden;
  opacity: 0;
}

.m1-t1.active {
  animation: m1-t1-ani 1.5s ease;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.m1-t2.active {
  animation: m1-t2-ani 1.5s ease;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes m1-t1-ani {
  0% {
    left: 11.65vw;
    transform: scaleX(0.95);
    opacity: 0;
  }

  100% {
    left: 12.65vw;
    transform: scaleX(0.95);
    opacity: 1;
  }
}

@keyframes m1-t2-ani {
  0% {
    left: 13.75vw;
    transform: scaleX(0.95);
    opacity: 0;
  }

  100% {
    left: 12.75vw;
    transform: scaleX(0.95);
    opacity: 1;
  }
}

.m1-line {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(255, 255, 255, .35);
  position: absolute;
  left: 12.7vw;
  top: 0.4vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
}

.m1-line.active {
  animation: m1-line 1.5s linear;
  animation-delay: 2s;
  animation-fill-mode: forwards;
}

@keyframes m1-line {
  0% {
    height: calc(0*var(--vw-base));
  }

  100% {
    height: calc(665*var(--vw-base));
  }
}

.m1-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);

  transform-origin: top;
  transform: scaleY(0);
}

@keyframes drawLine {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }

  70% {
    transform: scaleY(1);
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    opacity: 0;
    /* 畫完淡出再重來 */
  }
}

.m1-line.active::after {
  animation: drawLine 3s ease-in-out infinite;
  animation-delay: 3s;
}

.bottom-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
  z-index: 10;
}

.main2 {
  position: relative;
  width: 100%;
  height: calc(950 * var(--vw-base));
  background-color: #f3eee7;
  overflow: hidden;
}


.m2-line1,
.m2-line2,
.m2-line3 {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  overflow: hidden;
  /* z-index: 100; */
}


.m2-line1 {
  left: 12.7vw;
  top: 0;
}

.m2-line2 {
  left: 69vw;
  bottom: 0;
}

.m2-line3 {
  left: 86.5vw;
  top: 0;
}

.m2-line1.active {
  animation: m2-1-line 2s linear;
  animation-fill-mode: forwards;
}

.m2-line2.active {
  animation: m2-2-line 2s linear;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

.m2-line3.active {
  animation: m2-3-line 2s linear;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes m2-1-line {
  from {
    height: 0
  }

  to {
    height: 100%;
  }
}

@keyframes m2-2-line {
  from {
    height: 0
  }

  to {
    height: 100%;
  }
}

@keyframes m2-3-line {
  from {
    height: 0
  }

  to {
    height: 100%;
  }
}

.m2-line-bottom {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
  z-index: 100;
}

.m2-title {
  position: absolute;
  top: calc(235*var(--vw-base));
  left: calc(450*var(--vw-base));
}

.en-title {
  position: relative;
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: calc(48*var(--vw-base));
  line-height: 1.2em;
  letter-spacing: 0.03em;
  color: rgba(117, 107, 102, 0.2);
  /* opacity: 0.2; */
}

.zh-title {
  position: relative;
  font-family: 'Noto Serif TC', serif;
  font-weight: 400;
  font-size: calc(16*var(--vw-base));
  line-height: 1.5em;
  letter-spacing: 0.1em;
  color: #756b66;
  margin-top: calc(0*var(--vw-base));

}

.contact-form {
  position: relative;
  width: calc(1010 * var(--vw-base));
  margin: 0 auto;
  display: grid;
  /* 使用 12 欄位系統，對齊會最精準 */
  grid-template-columns: repeat(2, 1fr);
  column-gap: calc(60 * var(--vw-base));
  row-gap: calc(40 * var(--vw-base));
  padding-top: calc(436 * var(--vw-base));
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  --main-color: #756b66;
}


.form-container {
  position: relative;
  width: calc(1010 * var(--vw-base));
  margin: 0 auto;
  display: grid;
  /* 使用 12 欄位系統，對齊會最精準 */
  grid-template-columns: repeat(2, 1fr);
  column-gap: calc(60 * var(--vw-base));
  row-gap: calc(40 * var(--vw-base));
  padding-top: calc(436 * var(--vw-base));
}


/* 基礎欄位定義 */
.input {
  grid-column: span 1;
}

.input.input-textarea {
  grid-column: span 2;
  height: auto;
  min-height: calc(47*var(--vw-base));
  align-items: flex-start;
}



.input {
  position: relative;
  height: calc(47*var(--vw-base));
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  padding: 0;
}

.input:last-child {
  position: relative;
  top: calc(15*var(--vw-base));
}


.input::before {
  content: '';
  position: absolute;
  bottom: 0;
  /* 偽元素位於 .input 上方 */
  left: 0;
  width: 100%;
  /* 偽元素寬度填滿 */
  height: 0.5px;
  /* 偽元素高度，可調整為間隔需求 */
  background-color: rgba(137, 126, 121, 1);
  /* 視覺樣式 */
}

.input-focus-start {
  position: absolute;
  bottom: -0.2vw;
  /* 偽元素位於 .input 上方 */
  left: -1vw;
  width: calc(10*var(--vw-base));
  /* 偽元素寬度填滿 */
  height: calc(10*var(--vw-base));
  /* 偽元素高度，可調整為間隔需求 */
  background-image: url(../img/06/focus.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}

.input:last-child::before {
  content: '';
  position: absolute;
  bottom: 0;
  /* 偽元素位於 .input 上方 */
  left: 0;
  width: 100%;
  /* 偽元素寬度填滿 */
  height: 0.5px;
  /* 偽元素高度，可調整為間隔需求 */
  background-color: transparent;
  /* 視覺樣式 */
}

.input>label {
  position: absolute;
  left: 0;
  top: 37%;
  width: calc(120*var(--vw-base));
  text-align-last: start;
  font-size: calc(16*var(--vw-base));
  font-family: "Noto Serif TC";
  font-weight: 400;
  letter-spacing: 0.075em;
  color: rgba(117, 107, 102, 1);
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 10;
  margin: 0;
}

.input.input-textarea>label {
  top: calc(30*var(--vw-base));
  transform: translateY(-50%);
}

.input>input:not(:placeholder-shown)~label,
.input>textarea:not(:placeholder-shown)~label,
.input>select:valid~label {
  opacity: 0;
  visibility: hidden;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: #000;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset;
  /*淡淡的白*/
  transition: background-color 5000s ease-in-out 0s;
  /*透明*/
}

.input input[type="text"],
.input input[type="tel"],
.input input[type="email"] {
  position: relative;
  top: calc(2*var(--vw-base));
  /* width: calc(550*var(--vw-base)); */
  width: 100%;
  font-size: calc(16* var(--vw-base));
  border: none;
  background-color: transparent;
  color: #756b66;
  box-sizing: border-box;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  -moz-appearance: none;
  font-family: 'Noto Serif TC';
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: calc(30 * var(--vw-base));
  padding-bottom: calc(3 * var(--vw-base));
  padding-top: calc(10 * var(--vw-base));
  padding-left: calc(0*var(--vw-base));

}

.input textarea {
  position: relative;
  top: calc(0 * var(--vw-base));
  width: 100%;
  font-size: calc(16 * var(--vw-base));
  border: none;
  background-color: transparent;
  color: #756b66;
  box-sizing: border-box;
  outline: none;
  letter-spacing: 0.05em;
  font-family: 'Noto Serif TC';
  font-weight: 400;
  line-height: calc(30 * var(--vw-base));
  padding-bottom: calc(10 * var(--vw-base));
  padding-top: calc(15 * var(--vw-base));
  resize: none;
  overflow: hidden;
  height: auto;
  min-height: calc(40 * var(--vw-base));
  field-sizing: content;
}

.input select {
  position: relative;
  width: 100%;
  top: calc(2*var(--vw-base));
  /* width: calc(550*var(--vw-base)); */
  font-size: calc(16* var(--vw-base));
  border: none;
  background-color: transparent;
  color: #756b66;
  box-sizing: border-box;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  -moz-appearance: none;
  font-family: 'Noto Serif TC';
  font-weight: 400;
  letter-spacing: 0.05em;
  background-image: url(../img/06/select.png);
  background-position-x: 99%;
  background-position-y: 50%;
  background-repeat: no-repeat;
  background-size: 0.6vw;
}

select option {
  color: #756b66;
  background-color: #f3eee7;
  position: relative;
  /* width: calc(550*var(--vw-base)); */
  width: 100%;
  font-size: inherit;
  /* 继承 select 的字体大小 */
  color: inherit;
}

form button,
#submitbtn {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  height: calc(40*var(--vw-base));
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  z-index: 100;
  /* box-shadow: #756b66 1px 1px 1px 1px; */
  transition: all 0.2s ease;
}

.code-img {
  position: absolute;
  right: 0vw;
  top: 0.7vw;
  width: calc(70*var(--vw-base));
  height: calc(25*var(--vw-base));
}


.check-item {
  position: relative;
  margin-top: calc(0*var(--vw-base));
  display: flex;
  gap: calc(15*var(--vw-base));
  font-family: 'Noto Serif TC';
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #756b66;
  font-size: calc(16*var(--vw-base));
  cursor: pointer;
}

.check-label {
  white-space: nowrap;
  cursor: pointer;
}

.check-item label input {
  position: relative;
  top: calc(0 * var(--vw-base));
  width: calc(16 * var(--vw-base));
  height: calc(16 * var(--vw-base));
  margin: 0% 5% -2.5% 0;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  -moz-appearance: none;
  appearance: none;
  background-image: url(../img/06/check.png);
  background-size: calc(16 * var(--vw-base)) calc(16 * var(--vw-base));
  background-position-x: 50%;
  background-position-y: 50%;
  background-repeat: no-repeat;

  border: none;
  cursor: pointer;
}

.check-item label input:checked {
  background-image: url(../img/06/checked.png);
}

.check-item-sex {
  position: absolute;
  top: calc(10*var(--vw-base));
  right: calc(0*var(--vw-base));
  display: flex;
  color: #756b66;
  gap: calc(20*var(--vw-base));
  font-size: calc(16 * var(--vw-base));
}

.check-item-sex label {
  cursor: pointer;
  width: calc(60* var(--vw-base));
  text-align: end;

}

.check-item-sex label input[type="radio"] {
  position: relative;
  margin-right: 0.3vw;
  top: calc(2 * var(--vw-base));
  width: calc(16 * var(--vw-base));
  height: calc(16 * var(--vw-base));
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-border-radius: 0px;
  background-image: url(../img/06/check.png);
  background-size: calc(16 * var(--vw-base)) calc(16 * var(--vw-base));
  background-position-x: 50%;
  background-position-y: 50%;
  background-repeat: no-repeat;
  cursor: pointer;
}

.check-item-sex label input:checked {
  background-image: url(../img/06/checked.png);
}



.openTxtBtn {
  position: relative;
  font-family: "Noto Serif TC";
  font-weight: 400;
  letter-spacing: 0.075em;
  font-size: calc(16*var(--vw-base));
  color: #756b66;
  cursor: pointer;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.openTxtBtn.hover {
  text-decoration: underline !important;
}

/* =========================
   MORE button
========================= */
.more-btn {
  position: relative;
  /* display: inline-block; */
  /* padding-right: calc(37 * var(--vw-base)); */
  text-decoration: none;
  z-index: 100;
}

/* 文字 */
.more-text {
  font-family: "Lora", serif;
  font-size: calc(17 * var(--vw-base));
  font-weight: 600;
  letter-spacing: .1em;
  color: #756b66;
  transition: color .35s var(--ease);
}

/* 線條外層：裁切框 */
.more-line {
  position: absolute;
  left: 0;
  top: 1.7vw;
  width: calc(100 * var(--vw-base));
  height: calc(3 * var(--vw-base));
  overflow: hidden;
  pointer-events: none;
}

/* 兩張線圖共用同一個動作 */
.more-line img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  /* 初始：整條線往左移 → 右邊被裁 */
  transform: translateX(calc(-0.7 * var(--line-shift)));
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}

/* 狀態 */
.line-gray {
  opacity: 1;
}

.line-gold {
  opacity: 0;
}

/* Hover：線補齊 + 換成金色 */
.more-btn:hover .more-line img {
  transform: translateX(0);
}

.more-btn:hover .line-gray {
  opacity: 0;
}

.more-btn:hover .line-gold {
  opacity: 1;
}

/* =========================
   右側圓圈
========================= */
.more-icon {
  position: absolute;
  right: -39%;
  top: 85%;
  width: calc(30 * var(--vw-base));
  height: calc(30 * var(--vw-base));
  transform: translateY(-50%) scale(0.35);
  /* 🔑 初始縮小 */
  opacity: 0;
  transition:
    opacity .4s var(--ease),
    transform .5s var(--ease);
}

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

.more-btn:hover .more-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  /* 🔑 從小到大 */
}

.more-btn:hover .more-text {
  color: #c5a583;
}

/*同意書照片預覽*/

.black {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0px;
  top: 0px;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 11111;
  font-family: "Noto Sans TC";
}

.closeBtn {
  width: 30px;
  position: absolute;
  right: 5%;
  top: 4%;
  cursor: pointer;
}

.infoWrap {
  width: 100%;
  margin: 0 auto;
  max-width: 65%;
  position: relative;
  height: 100vh;
  overflow: auto;
}

.infoWrap ul {
  list-style: none;
  font-size: 1vw;
  padding-inline-start: 2vw;
}

.infoWrap ul>li>ul {
  list-style: none;
  font-size: 1vw;
  padding-inline-start: 1vw;
}

.li1::before {
  content: "一、";
  position: absolute;
  left: 0vw;
}

.li2::before {
  content: "二、";
  position: absolute;
  left: 0vw;
}

.li3::before {
  content: "三、";
  position: absolute;
  left: 0vw;
}

.li4::before {
  content: "四、";
  position: absolute;
  left: 0vw;
}

.li5::before {
  content: "五、";
  position: absolute;
  left: 0vw;
}

.li1-li::before {
  content: "（１）";
  position: absolute;
  left: 0vw;
}

.li2-li::before {
  content: "（２）";
  position: absolute;
  left: 0vw;
}

.li3-li::before {
  content: "（３）";
  position: absolute;
  left: 0vw;
}

.li4-li::before {
  content: "（４）";
  position: absolute;
  left: 0vw;
}

.infoBox {
  width: 100%;
  height: calc(100% - 20vw);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow-y: auto;
  color: #fff;
  text-align: left;
}

.infoBox h3 {
  font-size: 1.2vw;
  line-height: 180%;
  margin-bottom: 25px;
  text-align: center;
}

.infoBox h4 {
  font-size: 1vw;
  line-height: 180%;
  margin-bottom: 1vw;
}

.infoBox h5 {
  font-size: 1.2vw;
  line-height: 180%;
  margin-bottom: 1vw;
}

.infoBox p {
  font-size: 1vw;
  line-height: 180%;
}