@import url('https://fonts.googleapis.com/css?family=Inter:300,400|Noto+Sans+TC:wght@300;400;500&display=swap');

html 
{
	height:100%;
	width:100%;

     /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body
{
    margin:0;
    padding:0;
    border:0;
    background: #fff;
    z-index:0;
    font-family: Inter, Noto Sans TC;
    line-height: 130%;
    height: 100vh;
}

body a
{
text-decoration: none;
-webkit-tap-highlight-color: transparent;
}

::selection 
{
	background-color: #A97565;
	color: #fff;
}

/* landing  --------------------------- */
.logo-large
{
	margin: 0;
	position: fixed;
	bottom: 48px;
	left: 13px;	
	z-index: 10001;
}

@media screen and
(min-width: 872px) and (max-width: 1279px)
{
	.logo-large
	{
		left: 24px;	
	}
}

@media screen and
(min-width: 1280px)
{
	.logo-large
	{
		display: none;
	}
}

/* case list  --------------------------- */

#grid, #grid2
{
    position: relative;
    width: calc(100% - 336px);
	max-width: 1248px;
    margin: 0 0 0 336px;
	padding-top: 40px;
	text-align: left;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.grid-selected
{
	width: 1248px;
	height: 609px;
	overflow: hidden;
	margin-top: 40px;
}

.grid-box-selected
{
	width: 100%;
	height: 560px;
	position: relative;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.3s ease-in;
}

.grid-wrap
{
    width: 400px;
    height: 449px;
    overflow: hidden;
	margin-top: 40px;
}
		
.grid-box 
{
    width: 400px;
    height: 400px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
	opacity: 0;
	transition: opacity 0.3s ease-in;
}

.grid-box.loaded, .grid-box-selected.loaded
{
	opacity: 1;
}

@media screen and
(min-width: 872px) and (max-width: 1583px)
{
	.grid-selected
	{
		width: 824px;
		height: 449px;
	}
	
	.grid-box-selected
	{
		height: 400px;
	}
}

@media screen and
(min-width: 872px) and (max-width: 1279px)
{
	#grid
	{
		width: 824px;
		padding-top: 8px;
		margin: 0 auto;
	}
	
	#grid2
	{
		width: 824px;
		padding-top: 32px;
		margin: 0 auto;
	}
	
	.grid-wrap
	{
		margin-top: 16px;
	}
	.grid-box div:hover, .grid-box-selected div:hover
	{
		opacity: 0;
	}
	
}

.grid-box div, .grid-box-selected div
{
    margin: 0 auto;
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.2);
	padding: 0;
	opacity: 0;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	-o-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
}

.grid-box div:hover, .grid-box-selected div:hover
{
	opacity: 1;
	cursor: pointer;
}

.grid-wrap h3, .grid-selected h3
{
    margin: 18px 0 6px 0;
	padding: 0;
    color: #222;
    font-weight: 400;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.025rem;
	position: relative;
	line-height: 100%;
}

.grid-wrap h4, .grid-selected h4
{
	margin: 0;
	padding: 0;
	color: #999;
	font-weight: 400;
	font-size: 11px;
	letter-spacing: 0.025rem;
	position: relative;
	line-height: 100%;
}

@media screen and
(min-width: 1px) and (max-width: 871px)
{
	#grid
	{
		width: calc(100% - 26px);
		padding-top: 8px;
		margin: 0 auto;
	}
	
	#grid2
	{
		width: calc(100% - 26px);
		padding-top: 32px;
		margin: 0 auto;
	}

	.grid-selected
	{
		width: 100%;
		height: calc(100% + 45px);
	}
	
	.grid-box-selected
	{
		height: 100%;
		aspect-ratio: 1;
	}
	
	.grid-wrap
	{
		width: 100%;
		height: calc(100% + 45px);
		margin-top: 16px;
	}
	
	.grid-box 
	{
		width: 100%;
		height: 100%;
		aspect-ratio: 1;
	}
	
	.grid-wrap h3, .grid-selected h3
	{
		margin: 14px 0 6px 0;
	}
	.grid-box div:hover, .grid-box-selected div:hover
	{
		opacity: 0;
	}
}


/* case details  ----------------------------------- */
#mobile-header-title
{
	margin: 0 auto;
	padding: 0;
	position: fixed;
	top: 0;
	left: 54px;
	right: 54px;
	height: 48px;
	display: flex;
	justify-content: center;
	align-items: center;   
	z-index: 10001;
	color: #222;
	font-weight: 400;
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.025rem;
	opacity: 0;
	transition: opacity 0.3s;
}

#mobile-header-title.visible 
{
	opacity: 1;
}

#case-top
{
	position: relative;
	width: 100%;
	padding-top: 120px;
	display: flex;
}

#case-cover
{
	flex: 1220 1;
	max-width: 1220px;
	height: 900px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
}

#case-cover-mobile
{
	display: none;
}

#case-info
{
	flex: 460 1;
	max-width: 460px;
	padding: 0;
}

.case-title
{
	margin: 0;
	padding: 0;
	color: #222;
	font-weight: 300;
	font-size: 38px;
	position: relative;
	line-height: 120%;
	letter-spacing: -0.045rem
}

.case-category
{
	margin: 0;
	padding-top: 11px;
	color: #222;
	font-weight: 300;
	font-size: 18px;
	position: relative;
	line-height: 100%;
	letter-spacing: 0.04rem;
}

.info-box
{
	margin: 0;
	padding-top: 100px;
	position: relative;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
}

.info-details
{
	width: 100px;
	flex-basis: 44%;
	margin-bottom: 40px;
}

.case-label
{
	margin: 0;
	color: #999;
	font-weight: 400;
	font-size: 11px;
	position: relative;
	line-height: 100%;
	letter-spacing: 0.04rem;
	text-transform: uppercase;
}

.case-value
{
	margin: 0;
	padding-top: 9px;
	color: #222;
	font-weight: 400;
	font-size: 13px;
	position: relative;
	line-height: 100%;
	letter-spacing: 0.04rem;
}

#case-details
{
	margin: 112px 0 0 0;
	position: relative;
	width: 100%;
	display: flex;
}

.spacer
{
	width: 60px;
}

.spacer2, .spacer3
{
	width: 120px;
}

#case-left
{
	margin: 0;
	padding: 0;
	flex: 460 1;
	max-width: 460px;
}

.case-description
{
	position: -webkit-sticky;
	position: sticky;
	top: 100px;
	width: 100%;
	color: #222;
/* 	font-family: Noto Sans TC; */
	font-weight: 400;
	font-size: 14px;
	line-height: 30px;
}

.case-description2
{
	position: -webkit-sticky;
	position: sticky;
	margin: 0 0 64px 0;
	top: calc(100% - 100px);
	width: 100%;
	color: #222;
/* 	font-family: Noto Sans TC; */
	font-weight: 400;
	font-size: 14px;
	line-height: 30px;
}

.case-title2
{
	margin: 0;
	padding: 0;
	color: #222;
	font-family: Inter;
	font-weight: 300;
	font-size: 20px;
	position: relative;
	line-height: 120%;
}

.case-category2
{
	margin: 0;
	padding-top: 4px;
	color: #999;
	font-family: Inter;
	font-weight: 300;
	font-size: 12px;
	position: relative;
	line-height: 100%;
	letter-spacing: 0.04rem;
}

#case-right
{
	flex: 1220 1;
	max-width: 1220px;
}

.case-pic
{
	width: 89%;
	max-width: 960px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-top: -24px;
}

.case-pic img, .case-pic video
{
	width: 100%;
	height: auto;
	margin-top: 32px;
}

.landscape
{
	width: 100%;
	height: auto;
	margin-top: 32px;
}

.portrait 
{
	width: calc(50% - 16px) !important;
	height: auto;
	margin-top: 32px;
}

#back
{
	margin: 32px 0 0 0;
	color: #222;
	font-weight: 400;
	font-size: 13px;
	height: 16px;
	position: relative;
	line-height: 100%;
	letter-spacing: 0.04rem;
	cursor: pointer;
	float: left;
}

#back img
{
	margin: 0 8px 0 0;
	width: 16px;
	height: 16px;
	float: left;
}

#back p
{
	margin: 2px 0 0 0;
	float: left;
}

@media screen and
(min-width: 1px) and (max-width: 871px) 
{
	#case-cover
	{
		display: none;
	}
		
	#case-cover-mobile
	{
		width: 100%;
		height: 420px;
		padding-top: 48px;
		display: flex;
		justify-content: center;		
	}
	
	.cover-mobile-image
	{
		width: calc(100% - 26px);
		height: 100%;
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
		overflow: hidden;
	}
	
	#case-top
	{
		padding-top: 0px;
		display: flex;
		justify-content: center;		
	}
	
	#case-info
	{
		flex: 824 1;
		max-width: calc(100% - 26px);
		padding-top: 24px
	}
	
	.info-box
	{
		padding-top: 52px;
	}
	
	.info-details
	{
		margin-bottom: 32px;
	}
	
	.case-title
	{
		font-size: 24px;
		letter-spacing: 0rem
	}
	
	.case-category
	{
		font-size: 15px;
		padding-top: 7px;
	}
	
	.info-details
	{
		flex-basis: 50%;
	}
	
	.spacer, .spacer2, .spacer3
	{
		display: none;
	}
	
	#case-details
	{
		margin: 0;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;		
	}
	
	#case-left
	{
		flex: 824 1;
		max-width: calc(100% - 26px);
		padding-top: 12px;
	}
	
	.case-description
	{
		position: relative;
		top: 0;
	}
	
	.case-description2
	{
		display: none;
	}
	
	#case-right
	{
		flex: 824 1;
		max-width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;		
	}
	
	.case-pic
	{
		width: calc(100% - 26px);
		padding-top: 60px;
	}

	.case-pic img, .case-pic video
	{
		width: 100%;
		height: auto;
		margin-top: 0px;
	}
	
/* 	.landscape, .portrait
	{
		margin-top: 8px;
	} */
		
	#back
	{
		margin: 13px 0 0 0;
		width: calc(100% - 26px);
		height: 44px;
		display: flex;
		justify-content: center;		
		align-items: center;
		border: 1px solid;
		border-color: #E8E8E8;
	}
	
}

@media screen and
(min-width: 1279px) and (max-width: 1366px) 
{
	#case-cover
	{
		height: 590px;
	}
	
	#case-details
	{
		margin: 80px 0 0 0;
	}
		
}

@media screen and
(min-width: 872px) and (max-width: 1279px) 
{
	#case-cover
	{
		display: none;
	}
		
	#case-cover-mobile
	{
		width: 100%;
		height: 608px;
		padding-top: 48px;
		display: flex;
		justify-content: center;		
	}
	
	.cover-mobile-image
	{
		width: 824px;
		height: 100%;
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
		overflow: hidden;
	}
	
	#case-top
	{
		padding-top: 0px;
		display: flex;
		justify-content: center;		
	}
	
	#case-info
	{
		flex: 824 1;
		max-width: 824px;
		padding-top: 24px
	}
	
	.info-box
	{
		padding-top: 52px;
	}
	
	.info-details
	{
		margin-bottom: 32px;
	}
	
	.case-title
	{
		font-size: 24px;
		letter-spacing: 0rem
	}
	
	.case-category
	{
		font-size: 15px;
		padding-top: 7px;
	}
	
	.info-details
	{
		flex-basis: 50%;
	}
	
	.spacer, .spacer2, .spacer3
	{
		display: none;
	}
	
	#case-details
	{
		margin: 0;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: center;		
	}
	
	#case-left
	{
		flex: 824 1;
		max-width: 824px;
		padding-top: 16px;
	}
	
	.case-description
	{
		position: relative;
		top: 0;
	}
	
	.case-description2
	{
		display: none;
	}
	
	#case-right
	{
		flex: 824 1;
		max-width: 824px;
	}
	
	.case-pic
	{
		width: 824px;
		padding-top: 40px;
	}

	#back
	{
		margin: 24px 0 0 0;
		width: 100%;
		height: 44px;
		display: flex;
		justify-content: center;		
		align-items: center;
		border: 1px solid;
		border-color: #E8E8E8;
	}
}

@media screen and
(min-width: 1367px) and (max-width: 1660px) 
{
	#case-cover
	{
		height: 700px;
	}
		
	.info-details
	{
		flex-basis: 50%;
	}
}

@media screen and
(min-width: 1279px) and (max-width: 1660px) 
{
	.case-pic
	{
		width: calc(100% - 60px);
	}
	
	.spacer2
	{
		width: 60px;
	}
}

@media screen and
(min-width: 1279px) and (max-width: 6000px) 
{
	#mobile-header-title
	{
		display: none;
	}
}

/* about  -------------------------------------- */

#about-container, #about-container2
{
    margin: 0 0 0 400px;
	padding-top: 120px;
    position: relative;
    width: 404px;
	height: auto;
    text-align: left;
	z-index:1;
	}

.about-title
{
	margin: 0;
	padding: 0;
	color: #222;
	font-weight: 300;
	font-size: 38px;
	letter-spacing: -0.04rem;
	position: relative;
	line-height: 120%;
}

.about-title-small
{
	margin: 11px 0 0 0;
	padding: 0;
	color: #222;
	font-weight: 300;
	font-size: 18px;
	letter-spacing: 0.025rem;
	position: relative;
	line-height: 100%;
}

.about-body, .contact-body
{
	margin: 38px 0 0 0;
	padding: 12px 32px 0 0;
	color: #222;
	font-weight: 400;
	font-size: 16px;
	position: relative;
	background: #fff;
}

.about-body-ch, .contact-body-ch
{
	line-height: 32px;
}

.about-body-en
{
	line-height: 28px;
	padding: 10px 0 0 0;
	margin: 0;
}

#about-pic
{
	position: absolute;
	margin: 0;
	padding: 0;
	width: 100%;
	z-index: 0;
	top: 0;
}

.about-pic-image
{
	margin: 120px 0 0 700px;
	padding: 0;
	width: calc(100% - 700px);
	max-width: 1160px;
	height: 900px;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
}

@media screen and
(min-width: 1px) and (max-width: 871px) 
{
	#about-container
	{
		margin: 0 auto;
		margin-top: -40px;
		padding-top: 0;
		width: calc(100% - 26px);
	}
	.title-box
	{
		width: 200px;
		height: 77px;
		padding-top: 24px;
		background: #fff;
	}
	
	.about-title
	{
		font-size: 24px;
		font-weight: 400;
		letter-spacing: 0rem;
	}
	
	.about-title-small
	{
		font-size: 15px;
		letter-spacing: 0.025rem;
		margin: 6px 0 0 0;
	}
	
	.about-body
	{
		margin: 0;
		padding: 0;
	}
	
	#about-pic
	{
		display: none;
	}
}

@media screen and
(min-width: 872px) and (max-width: 1279px) 
{
	#about-container
	{
		margin: 0 auto;
		margin-top: -40px;
		padding-top: 0;
		width: 824px;
	}
	.title-box
	{
		width: 254px;
		height: 77px;
		padding-top: 24px;
		background: #fff;
	}
	
	.about-title
	{
		font-size: 24px;
		font-weight: 400;
		letter-spacing: 0rem;
	}
	
	.about-title-small
	{
		font-size: 15px;
		letter-spacing: 0.025rem;
		margin: 6px 0 0 0;
	}
	
	.about-body
	{
		margin: 0;
		padding: 0;
	}
	
	#about-pic
	{
		display: none;
	}
}

@media screen and
(min-width: 1279px) and (max-width: 1660px) 
{
	#about-container
	{
		margin: 0 0 0 336px;
	}
	.about-pic-image
	{
		margin: 120px 0 0 636px;
	}
}


/* contact  -------------------------------------- */
#contact-box
{
	display: flex;
}

.contact-title
{
	margin: 71px 0 0 0;
	padding: 0;
	color: #222;
	font-family: Noto Sans TC;
	font-weight: 600;
	font-size: 16px;
	position: relative;
	line-height: 100%;
}

.contact-invoice
{
	margin: 12px 0 0 0;
	padding: 0;
	color: #222;
	font-weight: 400;
	font-size: 16px;
	position: relative;
	line-height: 100%;
}

.contact-label
{
	margin: 37px 0 0 0;
	padding: 0;
	color: #999;
	font-weight: 400;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.025rem;
	position: relative;
	line-height: 100%;
}

.contact-value, .contact-value a
{
	margin: 10px 0 0 0;
	padding: 0;
	color: #222;
	font-weight: 400;
	font-size: 13px;
	letter-spacing: 0.025rem;
	position: relative;
	line-height: 100%;
}

.contact-value a
{
	text-decoration: underline;
	text-decoration-color: #bbb;
	text-underline-offset: 3px;
}

 .contact-value a:hover
 {
	color: #965139;
	cursor: pointer;
  }

#google-form
{
	position: relative;
	margin: 270px 0 0 132px;
	padding: 0;
	width: 580px;
	height: auto;
	top: 0;
	overflow: hidden;
}

#google-form iframe
{
	position: relative; 
	left: -24px;
}

@media screen and
(min-width: 1px) and (max-width: 871px) 
{
	#contact-box
	{
		width: calc(100% - 26px);
		margin: 0 auto;
		flex-direction: column;
	}
	
	#about-container2
	{
		margin: 0;
		width: 100%;
		padding-top: 88px;
		
	}
	.contact-body
	{
		margin: 0;
		padding: 24px 0 0 0;
	}
	
	#google-form
	{
		margin: 80px 0 0 0;
		width: 100%;
	}
	#google-form iframe
	{
		width: calc(100% + 42px);
		left: -21px;
	}
}

@media screen and
(min-width: 872px) and (max-width: 1279px) 
{
	#contact-box
	{
		width: 824px;
		margin: 0 auto;
	}
	
	#about-container2
	{
		margin: 0;
		width: 336px;
		padding-top: 88px;
		
	}
	.contact-body
	{
		margin: 0;
		padding: 24px 0 0 0;
	}
		
	#google-form
	{
		margin: 180px 0 0 60px;
		width: 428px;
	}
	#google-form iframe
	{
		left: 21px;
	}
}

@media screen and
(min-width: 1280px) and (max-width: 1440px) 
{
	#about-container2
	{
		margin: 0 0 0 336px;
		width: 340px;
		}
	.contact-body
	{
		margin: 0;
		padding: 50px 0 0 0;
	}

	#google-form
	{
		margin: 270px 0 0 60px;
		width: 484px;
	}
}

@media screen and
(min-width: 1441px) and (max-width: 1660px) 
{
	#about-container2
	{
		margin: 0 0 0 336px;
		width: 340px;
		}
	.contact-body
	{
		margin: 0;
		padding: 50px 0 0 0;
	}
	
	#google-form
	{
		margin: 270px 0 0 60px;
	}
}

/* Back to top  ---------------------------- */

.scrolltop 
{
	display: none;
	width: 100%;
	margin: 0 auto;
	position: fixed;
	bottom: 60px;
	right: 60px;	
}

.scroll 
{
	position:absolute;
	right: 0;
	bottom: 0;
	background:#222;
	padding: 8px 13px 10px 13px;
	text-align: center;
	margin: 0;
	cursor: pointer;
}

.scroll .fa 
{
	font-size: 22px;
	color: #fff;
}

@media screen and
(min-width: 1px) and (max-width: 871px) 
{
	.scrolltop 
	{
		right: 13px;
		bottom: 40px;
	}
	
	.scroll 
	{
		background:rgba(34, 34, 34, 0.5);
	}
	
	.scroll:hover 
	{
		background:rgba(34, 34, 34, 1);
	}
}

@media screen and
(min-width: 872px) and (max-width: 1023px) 
{
	.scrolltop 
	{
		right: 24px;
		bottom: 40px;
	}
	
	.scroll 
	{
		background:rgba(34, 34, 34, 0.5);
	}
	
	.scroll:hover 
	{
		background:rgba(34, 34, 34, 1);
	}
}

@media screen and
(min-width: 1024px) and (max-width: 1279px) 
{
	.scrolltop 
	{
		bottom: 40px;
		right: 40px;	
	}
}
