@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500&display=swap');

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

html {
  -webkit-font-smoothing: antialiased;
}

body.page-locked {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body {
  background-color: #ffffff;
  color: #333333;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: #333333;
  text-decoration: underline;
}

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

/* HEADER */
.site-header {
  padding-top: 36px;
  text-align: center;
}

.site-header a {
  display: inline-block;
  text-decoration: none;
}

.site-header img {
  width: 398px;
  max-width: 72vw;
  height: auto;
  display: inline-block;
}

/* FOOTER */
.site-footer {
  padding: 0 0 34px 0;
  text-align: center;
}

.site-footer a {
  display: inline-block;
  text-decoration: none;
}

.site-footer .footer-logo {
  width: 105px;
  height: auto;
  display: inline-block;
}

.site-footer .footer-copy {
  font-size: 9px;
  color: #333333;
  margin-top: 10px;
  letter-spacing: .01em;
  text-align: left;
  padding-left: 30px;
}

/* 首頁 */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.home-main p {
  font-size: 12px;
  line-height: 2;
}

.home-main a {
  color: #333333;
  text-decoration: underline;
}

.home-main a:hover {
  text-decoration: none;
}

/* ABOUT */
.about-main {
  max-width: 664px;
  margin: 0 auto;
  padding: 20px 20px;
  overflow-y: auto;
}

.about-main p {
  font-size: 13px;
  line-height: 1.7;
}

.about-main .spacer {
  height: 20px;
}

/* PORTFOLIO */
.portfolio-main {
  max-width: 664px;
  margin: 0 auto;
  padding: 0 20px;
}

.portfolio-main figure {
  margin: 0;
}

.portfolio-main figure img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-main .spacer {
  height: 20px;
}

.portfolio-main .spacer-lg {
  height: 30px;
}

/* CONTACT */
.contact-main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form {
  width: 300px;
  transform: translateY(64px);
}

.contact-form .form-field {
  position: relative;
  margin-bottom: 24px;
}

.contact-form input,
.contact-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0 18px 7px 0;
  border: 0;
  border-bottom: 1px solid #111;
  border-radius: 0;
  background: transparent;
  color: #111;
  font-size: 12px;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .02em;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input::placeholder {
  color: #111;
  opacity: .75;
}

.contact-form select:invalid {
  color: rgba(17, 17, 17, .75);
}

.contact-form .form-field.select::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
  transform: rotate(45deg);
  pointer-events: none;
}

.contact-form button[type="submit"] {
  display: block;
  margin: 18px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 12px;
  font-weight: 400;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
