@charset "utf-8";

/* ========================================
   基本設定
======================================== */
html,
body {
  margin: 0;
  min-height: 100%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Serif TC", serif;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ========================================
   共用區塊
======================================== */
/* 固定不動的背景 */
.fixed-background {
  position: fixed;

  width: 100%;
  height: 100vh;

  background-image: url("../images/home-background.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  z-index: -1;
}

/* 固定在視窗最前方的四角裝飾圖 */
.fixed-corners {
  position: fixed;
  inset: 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;

  pointer-events: none;
  z-index: 10;
}

.corner {
  display: block;
  width: 180px;
  height: auto;
}

.corner-top-left {
  justify-self: start;
  align-self: start;
}

.corner-top-right {
  justify-self: end;
  align-self: start;
  transform: scaleX(-1);
}

.corner-bottom-left {
  justify-self: start;
  align-self: end;
  transform: scaleY(-1);
}

.corner-bottom-right {
  justify-self: end;
  align-self: end;
  transform: scale(-1);
}


/* 每個主要區塊 */
.page-section {
  position: relative;

  width: 100%;
  height: auto;
}

/* 英文標題 */
.en-title {
	margin: 0 0 15px;
	color: #342b29;
	font-size: 50px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1;
	text-align: center;
}

/* ========================================
   主視覺
======================================== */

.section-inner {
  position: relative;

  width: 100%;
  height: 100%;
}


/* Logo + 三顆按鈕整組 */
.home-main-group {
  position: absolute;

  display: flex;
  flex-direction: column;
  align-items: center;

  width: 44%;
  max-width: 700px;

  /* 改用左右 0 + margin 置中 */
  left: 0;
  right: 0;
  bottom: 3%;

  margin: 0 auto;

  z-index: 2;
}

/* 背景圖片 */
.home-section {
  position: relative;

  width: 100%;
  height: auto;

  aspect-ratio: 1920 / 1080;

  overflow: visible;

  background-image: url("../images/home-main.JPG");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}


/* 背景圖片 */
.section-background {
  position: relative;

  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
  object-position: center;

  z-index: 0;
}

/* 所有圖片 */
.image-position {
  position: relative;
  z-index: 1;
}

.image-position img {
  display: block;

  width: 100%;
  height: auto;
}

/* 首頁按鈕 */

.home-link-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3%;
  width: 100%;
  margin-top: 5%;
}


.home-link-list a {
  position: relative;

  display: block;

  width: 30%;
  max-width: 230px;

  flex: 0 1 auto;

  z-index: 23;

  cursor: pointer;
}


.home-link-list img {
  display: block;

  width: 100%;
  height: auto;
}

/* 事前登入 */
.home-register-text {
  position: relative;

  width: 150%;
  margin: 0;

  flex-shrink: 0;
}

.home-register-text img {
  display: block;

  width: 100%;
  height: auto;
}


/*首頁圖片位置 */

.home-main-image {
  width: 55%;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);
}


.home-logo {
  position: relative;
  width: 100%;
	
  margin-bottom: -20%;
}


.home-logo img {
  display: block;

  width: 100%;
  height: auto;
}


.home-decoration {
  width: 25%;

  right: 5%;
  bottom: 5%;
}


/* 首頁背景圖片 */
.home-section .section-background {
  position: relative;

  inset: auto;

  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}

/* ========================================
   事前預約區域
======================================== */
.reservation-section {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  padding: 4% 0 1%;

  overflow: hidden;
  z-index: 1;
}


/* 事前預約按鈕 */
.reservation-link {
  display: block;

  width: 70%;
  max-width: 900px;

  /* 清除 button 預設樣式 */
  padding: 0;
  border: none;
  background: transparent;

  cursor: pointer;

  transition: transform 0.3s ease;
}


/* 事前預約圖片 */
.reservation-image {
  display: block;

  width: 100%;
  height: auto;
}


/* 滑鼠移到圖片上的效果 */
.reservation-link:hover {
  transform: scale(1.03);
}

/* ========================================
   INTRODUCTION 介紹區
======================================== */

.introduction-section {
  position: relative;
  width: 100%;
  padding:2% 5%;
  margin: 0 auto;
}

/* 背景圖片 */
/* 房子的背景圖片 */
.introduction_box {
}


/* 半透明白色色塊 */
.introduction-panel {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
  padding:5% 8% 10%;

  /* 第一層：房子圖片 */
  /* 第二層：半透明白色 */
  background-image:
    url("../images/introduction-background.png"),
    linear-gradient(
      rgba(255, 255, 255, 0.65),
      rgba(255, 255, 255, 0.65)
    );

  background-repeat: no-repeat, no-repeat;
  /* 房子和白色色塊保持相同尺寸 */
  background-size: 100% 50%, 100% 100%;
  background-position: center 100%, center;
  border: 1px solid rgba(128, 98, 71, 0.65);
  box-sizing: border-box;
}

/* 背景上的內容 */
.introduction-content {
  position: relative;
  text-align: center;
  z-index: 2;
}


/* 主標題 */
.introduction-heading {
  margin: 70px 0 40px;

  font-family: "Noto Serif TC", serif;
  font-size: 42px;
  font-weight: 600;

  color: #403b38;
}


/* 介紹文字 */
.introduction-text {
  margin: 0;

  font-family: "Noto Serif TC", serif;
  font-size: 18px;
  line-height: 2;

  color: #403b38;
}

/* ========================================
   SYSTEM 系統介紹區
======================================== */

.system-section {
  width: 100%;
  max-width: 1600px;
  margin:auto;
}

/* SYSTEM 內容 */
.system-content {
  margin: 0 auto;

  padding: 15% 5% 8%;

  text-align: center;

  z-index: 2;
	
  background-image: url("../images/system-background.webp");
  background-repeat: no-repeat;
  background-position: 50% 60%; 
  background-size: 1500px; 
}

/* 三張圖片 */ 
.system-image-list {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 60px;

  width: 100%;

  margin-top: 60px;
}


/* 圖片樣式 */
.system-image-list img {
  display: block;

  width: 760px;
  max-width: 100%;
  height: auto;

  border: 1px solid #9a7658;
}

/* NEWS 下方裝飾圖片 */
.system-title-decoration {
  display: block;

  width: 420px;
  max-width: 70%;

  height: auto;

  margin: 0 auto;
}

/* ========================================
   STAFF & CAST
======================================== */
/* 背景圖片 */
.staff-cast-section {
	display: grid;
	min-height: 900px;
	align-items: center;
}

.staff-cast-decoration {
	width: 100%;
	height: 100%;
	background-image: url("../images/staff-cast-decoration.webp");
	background-repeat: no-repeat;
	background-position: center 100px;
	background-size: 2000px;
}

.staff-cast-box {
	padding: 5%;
}

.staff-cast-background {
	width: 100%;
	min-height: 600px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 4%;
	background-color: rgba(255, 255, 255, 0.65);
	/* 咖啡色筆畫 */
	border: 1px solid rgba(128, 98, 71, 0.65);
	box-sizing: border-box;
}

/* 背景上的內容 */
.staff-cast-content {
	max-width: 1200px;
	position: relative;
	width: 100%;
	margin: auto;
	text-align: center;
}

/* 標題裝飾線 */
.staff-cast-line {
  display: block;

  width: 420px;
  max-width: 60%;
  height: auto;

  margin: 0 auto 50px;
}
	

/* STAFF / CAST 四欄 */
.staff-cast-list {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  column-gap: 40px;
  row-gap: 35px;

  width: 90%;

  margin: 0 auto;
}


/* 每一組資料 */
.staff-cast-item {
  text-align: left;

  font-family: "Noto Serif TC", serif;
}


/* 職稱 / 角色名 */
.staff-cast-role {
  margin: 0 0 5px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;

  color: #8b765f;
}


/* 人名 */
.staff-cast-name {
  margin: 0;

  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.3px;
  font-weight: 700;

  color: #403b38;
}


/* 小字補充 */
.staff-cast-note {
  margin: 3px 0 0;

  font-size: 12px;
  line-height: 1.6;

  color: #777;
}


/* STAFF 與 CAST 的距離 */
.staff-cast-group-cast {
  margin-top: 80px;
}

/* ========================================
   FOOTER 尾頁
======================================== */
.footer-section {
  margin-top: auto;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 160px;

  background-color: #433d3b;
  overflow: hidden;
}

/* 尾頁內容 */
.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 40px;

  zoom: min(1, calc(100vw / 1200px));
}

/* 左邊 logo */
.footer-logo {
  width: 130px;
  height: auto;
  flex-shrink: 0;
}

/* 中間版權 */
.footer-copyright {
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
}

.footer-copyright p {
  margin: 0;
}

/*cr */
.footer-cr {
  display: flex;
  align-items: center;
  gap:20px;

  transform-origin: left center;
}

/* 右邊 15+ + 三行警語 */
.footer-warning {
  display: flex;
  align-items: flex-start;
  gap:15px;
}

/* 15+ 圖 */
.footer-age {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

/* 三行文字整組 */
.footer-warning-text {
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
}

.footer-warning-text p {
  margin: 0;
}

/* 隱私政策 */
.footer-age-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
}
.footer-privacy {
    margin-top: 5px;
    color: #ffffff;
    font-size: 11px;
    white-space: nowrap;
    text-decoration: none;
}
.footer-privacy:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* ========================================
   ipad
======================================== */
@media (max-width: 1050px){
	
/* Logo + 三顆按鈕整組 */
.home-main-group {
  width: 35%;
}
	
.reservation-section {
  padding: 10% 0 6%;
}	
	
.introduction-section {
  max-width: 960px;
  padding: 5% 5%;
}
	
} 


/* ========================================
   mini
======================================== */
@media (max-width: 780px){
/* 英文標題 */
.en-title {
  font-size: 40px;
}	
	
.reservation-section {
    padding: 10% 0 4%;
}	

/* 主標題 */
.introduction-heading {
  margin: 40px 0 20px;
  font-size: 24px;
}

/* 介紹文字 */
.introduction-text {
  font-size: 14px;
  line-height: 1.5;
}
	
}
/* ========================================
   手機版
======================================== */
@media (max-width: 500px){

  /* ========================================
     手機版－基本設定
  ======================================== */

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  /* 固定背景配合手機瀏覽器高度 */
  .fixed-background {
    height: 100vh;
    background-position: center top;
    background-size: cover;
  }
	
  .corner {
  display: block;
  width: 150px;
  height: auto;
}
	
  /* 英文標題 */
  .en-title {
  margin: 0 0 15px;
  color: #342b29;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px; 
  line-height: 1;
}

  /* ========================================
     手機版－首頁主視覺
  ======================================== */
	
	/* 背景圖片 */
	.home-section {

	  height: 70vh;

	  background: url("../images/p-home-main.webp") no-repeat center;
	  background-size: cover;
	}

		/* 事前登入 */
	.home-register-text {
	  width: 1200px;
	  max-width: 150vw;
	}

	.home-link-list a {
	  width: 100%;
	}
	
	 .home-main-group {
	  width: 70%;
	}

  /* ========================================
     手機版－事前預約區域
  ======================================== */

	  .reservation-section {
	  padding: 15% 0 10%;
	  }

	  .reservation-link {
		width: 92%;
		max-width: 600px;
	  }

/* ========================================
   SYSTEM 系統介紹區
======================================== */
	.system-content {
	  background-position: 50% 80%; 
	  background-size: 1200px; 
	}	

	.system-title {
	font-size: 35px;
	 }

		/* 三張圖片 */ 
	.system-image-list {
	  gap: 30px;
	  margin-top: 35px;
	}

	/* SYSTEM 內容 */
	.system-content {
	  padding: 40% 5% 20%;
	}
	
/* ========================================
   STAFF & CAST
======================================== */
	
	/* STAFF / CAST 大標 */
	.staff-cast-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    width: 78%;

    column-gap: 20px;
    row-gap: 20px;
    }
	
	/* 標題裝飾線 */
	.staff-cast-line {
	  margin: 0 auto 30px;
	}
	
	/* STAFF 與 CAST 的距離 */
	.staff-cast-group-cast {
	  margin-top: 10%;
	}
	
/* ========================================
   FOOTER 尾頁
======================================== */
	.footer-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		/* 舊版 iPhone 使用 */
		zoom: 0.45;
		/* 支援新語法的瀏覽器使用 */
		zoom: min(1, calc(100vw / 500px));
	}

	.footer-copyright {
		font-size: 8px;
	}

	.footer-warning-text {
		font-size: 8px;
	}

}	