:root {
  --text-color: #333;
  --white: #fff;
  --black: #000;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Shippori Mincho", serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* avoid --apple-system-blue in iPhone */
button {
  color: #000;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  color: var(--white);
  padding: 8px;
  z-index: 1000;
  transition: top var(--transition-speed);
}

.skip-link:focus {
  top: 0;
}

.main-wrapper {
  position: relative;
  min-height: 100vh;
}

.nav-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1000;
  transition: transform var(--transition-speed) ease-in-out;
}

.nav-sidebar.hidden {
  transform: translateX(-100%);
}

.nav-header {
  padding: 1rem;
}

.close-btn {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-content {
  padding: 2rem;
}

.nav-links {
  list-style: none;
}

.nav-link {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  color: var(--text-color);
}

.nav-link-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-link-subtitle {
  font-size: 1rem;
  margin-top: 0.5rem;
}

h3.brand-name {
  font-family: "Frank Ruhl Libre", -apple-system, Roboto, Helvetica, sans-serif;
  line-height: 1;
  letter-spacing: 3px;
  margin-left: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 900;
}

.site-header > div > a {
  align-items: center;
  display: flex;
}

.header-content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem;
  margin: 0 auto;
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.logo {
  height: 40px;
  width: auto;
}

main {
  padding-top: 60px;
}

.hero-banner {
  background-image: url("https://cdn.builder.io/api/v1/image/assets%2F98f310f49e394d0189a9cdcbf799bf46%2F564f8ba91c294bcca8bac36c0f18bf58");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2rem;
}

.hero-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem 1rem;
  margin-right: 4rem;
  margin-top: -2rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.about-section,
.service-section,
.news-section,
.contact-section,
.policy-section {
  padding: 2rem 1.5rem;
  margin: 0 auto;
}

.about-grid {
  display: flex;
  flex-wrap: wrap-reverse;
  -webkit-flex-wrap: wrap-reverse;
  justify-content: space-evenly;
  -webkit-justify-content: space-around;
}

.about-text-col {
  display: flex;
}

.service-section {
  background-color: rgba(149, 98, 39, 0.36);
}

.service-content {
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  margin: 20px auto 52px;
  display: flex;
  flex-direction: column;
  -webkit-box-align: stretch;
  align-items: stretch;
}

.service-grid {
  display: flex;
}

.service-img {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.service-text-col {
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  margin-top: 32px;
  background-color: rgba(139, 87, 42, 0.56);
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding: 20px;
}

.main-heading {
  font-size: 32px;
  align-self: start;
  margin-top: 20px;
  margin-left: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Shippori Mincho", serif;
}

.description {
  line-height: 36px;
  align-self: start;
  margin-top: 20px;
  margin-left: 20px;
  padding-right: 0px;
  font-family: "Noto Sans Nushu", sans-serif;
  text-wrap: wrap;
  color: rgba(255, 255, 255, 0.8);
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 1.4rem;
  line-height: 2;
}

.news-item {
  padding: 0.8rem;
  background-color: #eee;
}

.news-grid,
.contact-grid {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}

.contact-email-col,
.contact-form-col {
  flex-grow: 1;
}

.policy-list {
  padding-left: 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-footer {
  background-color: var(--text-color);
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media screen and (max-width: 768px) {
  .nav-sidebar {
    overflow: scroll;
  }

  .news-grid,
  .contact-grid {
    flex-direction: column;
  }

  .service-grid {
    display: block;
  }

  .hero-text {
    margin-right: 1rem;
  }

  .vertical-text {
    font-weight: 300;
    line-height: 28px;
    margin-left: auto;
    margin-bottom: 20px;
    margin-right: auto;
  }

  .service-text-col {
    margin-top: 0;
  }

  .service-img {
    max-height: 540px;
  }
}

@media screen and (max-width: 375px) {
  .hero-text {
    margin-right: 0.8rem;
    font-size: 1.2rem;
  }

  .vertical-text {
    font-size: 0.8rem;
    line-height: 1.4rem;
  }

  .service-img {
    max-height: 360px;
  }
}

.nav-link:hover,
.nav-link:focus {
  text-decoration: underline;
}

.menu-toggle:focus,
.close-btn:focus {
  outline-offset: 2px;
}

[aria-expanded="true"] {
  background-color: var(--black);
  color: var(--white);
}
