body {
  margin: 0;
  font-family: "M PLUS 1", sans-serif;
  color: #2f5d50;
}

/* JAPANESE TYPOGRAPHY */

html[lang="ja"] body,
body.lang-ja {
  font-family: "Noto Sans JP", sans-serif;
} 

/* Make form controls inherit the site font */
input,
textarea,
button,
select {
  font-family: inherit;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================================
   HEADER LAYOUT
========================================= */

.site-header {
  width: 100%;
  background: #f4f3e8;
  position: relative;
  z-index: 1000;
  overflow: visible;
}

/* MAIN GRID */

.header-grid {
  position: relative;

  display: grid;

  /*
    LEFT = 1fr
    CENTER = 3fr
    RIGHT = 1fr

    center is ~3x larger
  */

  grid-template-columns: 1fr 2fr 1fr;

  align-items: start;

  max-width: 1180px;
  min-width: 1180px;

  margin: 0 auto;

  padding: 10px 40px;

  min-height: 52px;
}

/* =========================================
   LEFT COLUMN
========================================= */

.header-left {
  position: relative;
  height: 0;
}

/* =========================================
   LOGO
========================================= */

.site-logo {
  position: absolute;
  top: -10px;
  left: 100px;
  z-index: 40;
}

.site-logo img {
  width: 120px;
  height: auto;
  display: block;
  image-rendering: auto;
}

/* =========================================
   CENTER COLUMN
========================================= */

.header-center {
  display: flex;
  justify-content: center;
  position: relative;
  top: 25px;
}

/* NAVIGATION */

.nav-menu {
  display: flex;

  flex-direction: row;

  align-items: center;

  gap: 36px;

  list-style: none;

  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;

  font-family: "M PLUS 1", sans-serif;

  font-size: 15px;

  font-weight: 400;

  color: #2f5d50;

  letter-spacing: 0.02em;

  transition: opacity 0.25s ease;
}

.nav-menu a:hover {
  opacity: 0.65;
}

/* =========================================
   RIGHT COLUMN
========================================= */

.header-right {
  position: relative;
}

/* =========================================
   LANGUAGE SWITCH BOX
========================================= */

/*
  Positioned OVER the border
  between CENTER and RIGHT columns
*/

.language-switch-wrap {
  position: absolute;

  /*
    Push near right edge of center column

    75% across layout visually
  */

  left: calc(80% - 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;

  display: inline-flex;
  align-items: center;
  width: max-content;
}

/* Polylang dropdown */

.language-switch-wrap select,
.language-switch-wrap .pll-switcher-select {
   appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: auto;
  min-width: 112px;
  max-width: none;
  box-sizing: border-box;

  background-color: #f4f3e8;
  border: 1px solid #2f5d50;
  border-radius: 999px;

  padding: 10px 38px 10px 18px;

  font-family: "M PLUS 1", sans-serif;
  font-size: 15px;
  color: #2f5d50;

  cursor: pointer;
  outline: none;
  line-height: 1.2;
  white-space: nowrap;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease;
}

/* HOVER */

.language-switch-wrap select:hover,
.language-switch-wrap .pll-switcher-select:hover {
  opacity: 0.75;
}

/* CUSTOM ARROW */

.language-switch-wrap::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #2f5d50;
}

/* =========================================
   HEADER MOBILE
========================================= */

@media (max-width: 768px) {

  .header-grid {
    display: grid;
    grid-template-columns: 128px 1fr 128px;
    align-items: start;
    min-width: 0;
    max-width: none;
    padding: 0 10px 8px;
    gap: 0;
    min-height: 72px;
  }

  .header-left {
    height: auto;
    position: relative;
  }

  .site-logo {
    position: relative;
    top: auto;
    left: auto;
    z-index: 40;
  }

  .site-logo img {
    width: 118px;
  }

  .header-center {
    position: relative;
    top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 6px 0 0;
    padding: 0;
  }

  .nav-menu a {
    font-size: 16px;
    line-height: 1.05;
  }

  .language-switch-wrap {
    grid-column: 3;
    grid-row: 1;

    position: relative;
    left: auto;
    top: auto;
    transform: none;

    justify-self: end;
    align-self: start;

    display: inline-flex;
    align-items: center;
    width: max-content;
    margin: 17px 0 0 0;
    z-index: 50;
  }

  .language-switch-wrap select,
  .language-switch-wrap .pll-switcher-select {
    min-width: 112px;
    padding: 9px 38px 9px 18px;
    font-size: 15px;
  }
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  width: 100%;

  background: #d7dccd;

  padding-top: 34px;
  padding-bottom: 18px;

  box-sizing: border-box;
}

.footer-inner {
  max-width: 1180px;
  min-width: 1180px;

  margin: 0 auto;

  padding: 0 90px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 22px;

  box-sizing: border-box;
}

.footer-brand,
.footer-link {
  color: #2f5d50;

  text-decoration: none;

  transition: opacity 0.25s ease;
}

/* LEFT TITLE */

.footer-brand {
  font-family: "Forum", serif;

  font-size: 22px;

  font-weight: 400;

  letter-spacing: 0.01em;
}

/* RIGHT ITEMS */

.footer-link {
  font-family: "M PLUS 1", sans-serif;

  font-size: 16px;

  font-weight: 400;
}

/* EXTRA SPACING BETWEEN ITEMS */

.footer-inner {
  column-gap: 54px;
}

/* HOVER */

.footer-brand:hover,
.footer-link:hover {
  opacity: 0.68;
}

/* COPYRIGHT */

.footer-copyright {
  margin-top: 18px;

  text-align: center;

  font-family: "M PLUS 1", sans-serif;

  font-size: 12px;

  font-weight: 300;

  color: #7d8777;

  letter-spacing: 0.01em;
}

/* =========================================
   FOOTER MOBILE
========================================= */

@media (max-width: 768px) {

  .footer-inner {
    min-width: 0;
    max-width: none;

    flex-direction: column;

    gap: 14px;

    text-align: center;

    padding: 0 24px;
  }

  .footer-brand {
    font-size: 20px;
  }

  .footer-link {
    font-size: 14px;
  }

  .footer-copyright {
    margin-top: 22px;

    padding: 0 24px;

    line-height: 1.4;
  }
}

/* Images */
img {
  max-width: 100%;
  display: block;
}