:root {
  --primary-color: #444e69;
  --secondary-color: #707a97;
  --tertiary-color: #d1dafb;
  --point-color: #d6374f;
  --point-color2: #7b5400;
  --point-red: #d6374f;
  --text-color: #384247;
  --text-color2: #263238;
  --text-color3: #37474f;
  --text-color4: #546e7a;
  --text-color5: #607d8b;
  --text-color6: #78909c;
  --text-color7: #90a4ae;
  --text-color8: #b0bec5;
  --text-color9: #cfd8dc;
  --text-color10: #eceff1;
  --text-white: #fff;
  --border-color: #e0e0e0;
  --border-color2: var(--text-color8);
  --border-color3: #bfbfbf;
  --btn-color: #f5fafe;
  --btn-blue: #4ba0cc;
  --bg-color: #ecf0f2;
  --bg-color2: var(--text-color10);
  --bg-color3: #f5fafe;
  --bg-color4: #e3f2fd;
  --bg-color5: #fafafa;
  --bg-color6: #f5f3f7;
  --link-color: #1565c0;
  --hover-color: #e6af2e;
  --visited-color: #673ab7;
  --cta-color: #4caf50;
  --wrapper-width: 850px;
  --content-width: 580px;
  --sidebar-width: 230px;
  --english-font: 'Source Sans Pro', sans-serif;
  --mincho: 'Noto Serif JP', serif;
  --mincho-en: 'Lora', serif;
}

body {
  font-size: 1rem;
}

body.jp {
  font-family: 'Noto Sans JP', 'Helvetica Neue', arial,
    'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'BIZ UDPGothic', meiryo,
    sans-serif;
}

body.en {
  font-family: 'Source Sans Pro', 'Helvetica Neue', arial, 'BIZ UDPGothic',
    sans-serif;
}

@media (min-width: 640px) {
  .contents {
    background-position: center top;
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 5vw 0;
  }
}

.wrapper {
  margin-inline: auto;
  max-width: 920px;
  width: 90vw;
}

.content-box {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .content-box {
    padding: 4rem 5%;
  }

  .content-box__inner {
    margin-inline: auto;
    max-inline-size: max-content;
  }
}

@media (min-width: 960px) {
  .content-box__inner {
    max-width: 640px;
  }
}

.heading {
  margin-inline: auto;
  max-inline-size: max-content;
  text-align: center;
}

.heading em {
  color: var(--primary-color);
  font-size: clamp(2rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  font-family: var(--english-font);
}

.heading em span {
  color: var(--primary-color);
  font-family: var(--english-font);
  font-weight: 500;
  display: block;
  font-size: 0.6em;
  padding: 0 0 0.15lh 0;
}

.heading span {
  display: block;
  padding-top: 0.5rem;
  color: var(--secondary-color);
}

.mid-heading {
  text-align: center;
  font-size: 1.125rem;
}

.en .mid-heading {
  font-size: 1.25rem;
}

.small-heading {
  font-size: 1.0625rem;
}

.en .small-heading {
  font-size: 1.1875rem;
}

.content-text p {
  padding-top: 1rem;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}

.en .content-text p {
  font-size: 1.125rem;
}

/* ==============3. Link Settings ================== */

a,
a:link {
  color: var(--link-color);
}
a:visited {
  color: var(--visited-color);
}
a:hover,
a:active {
  color: var(--hover-color);
}

a:link {
  text-decoration: underline;
}
a:visited {
  text-decoration: underline;
}
a:hover,
a:active {
  text-decoration: underline;
}

/*
##########################################################################
#- Header
##########################################################################
*/

.header.is_fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
}

.header-bar {
  display: none;
}

@media (min-width: 960px) {
  .header-bar {
    background-color: var(--text-color2);
    color: #fff;
    position: relative;
    padding: 0.5rem 0;
    min-height: 0;
    display: block;
  }

  .header.is_fixed .header-bar {
    display: none;
  }
}

.header-bar__wrapper {
  display: none;
  font-size: 0.75rem;
}

.header-bar__group {
  display: flex;
  gap: 0.5rem;
}

.header-bar__group a {
  color: #fff;
  text-decoration: none;
}

@media (min-width: 960px) {
  .header-bar__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.hamburger {
  position: absolute;
  top: 1.2rem;
  right: 5%;
  z-index: 10;
  display: block;
  width: 31px;
  height: 31px;
  transition: transform 0.5s cubic-bezier(0.42, 0, 0.58, 1) -0.2s;
  transform: translateY(0);
}

.hamburger button {
  all: unset;
  display: block;
}

.hamburger button * {
  pointer-events: none;
}

.hamburger__container {
  position: absolute;
  top: 0.5rem;
  left: 7px;
  transition: transform 0.2s cubic-bezier(0.42, 0, 0.58, 1) 0.1s;
}

.hamburger__container--top {
  transform: translateY(-3px) scaleX(0.88235);
}

.hamburger__container--bottom {
  transform: translateY(5px) scaleX(0.88235);
}

.hamburger__line {
  width: 28px;
  height: 2px;
  background-color: var(--tertiary-color);
  border-radius: 6px;
  transition: transform 0.2s cubic-bezier(0.42, 0, 0.58, 1);
  transform: none;
}

.hamburger.is_fixed {
  position: fixed;
  top: $hamburgerTopNegative;
  transition: transform 0.5s cubic-bezier(0.42, 0, 0.58, 1) 0.5s;
  transform: translateY(clamp(2.125rem, 1.563rem + 2.5vw, 2.5rem));
}

.hamburger.is_fixed ~ .mobilenav {
  position: fixed;
}

@media (min-width: 960px) {
  .hamburger {
    display: none;
  }
}

input.hamburger__check {
  display: none;
}

input.hamburger__check:checked + label .hamburger__container {
  transition-delay: 0s;
}

input.hamburger__check:checked + label .hamburger__container--bottom {
  transform: none;
}

input.hamburger__check:checked
  + label
  .hamburger__container--bottom
  .hamburger__line {
  background-color: #fff;
  transition-delay: 0.1s;
  transform: rotateZ(45deg);
}

input.hamburger__check:checked + label .hamburger__container--top {
  transform: none;
}

input.hamburger__check:checked
  + label
  .hamburger__container--top
  .hamburger__line {
  background-color: #fff;
  transition-delay: 0.1s;
  transform: rotateZ(-45deg);
}

input.hamburger__check:checked ~ .mobilenav {
  opacity: 1;
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) -0.2s;
  transform: translateY(0);
}

.mobilenav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  width: 100vw;
  color: #fff;
  background-color: var(--text-color2);
  opacity: 0.5;
  padding-top: 3rem;
  transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
    opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.2s;
  transform: translateY(-100%);
  will-change: opacity, transform;
}

.mobilenav ul {
  margin-inline: auto;
  width: 90vw;
}

.mobilenav li:not(:last-child) {
  border-bottom: 1px solid var(--text-color);
}

.mobilenav a {
  font-size: 0.875rem;
  padding: 0.8rem 0;
  color: #fff;
  display: block;
  text-decoration: none;
}

@media (min-width: 600px) {
  .mobilenav a {
    font-size: 1rem;
  }
}

@media (min-width: 960px) {
  .mobilenav {
    display: none;
  }
}

.header-main {
  padding: 1rem 0;
  position: relative;
}

.header-main::before {
  background-color: var(--primary-color);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  z-index: -1;
}

.header.is_fixed .header-main::before {
  opacity: 0.95;
  backdrop-filter: blur(5px);
}

@media (min-width: 960px) {
  .header-main__wrapper {
    padding: 0.5rem 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }

  .header.is_fixed .header-main__wrapper {
    padding-top: 0;
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.5ch;
  width: 50vw;
  max-width: 240px;
}

.header__logo .logo_icon {
  width: 25%;
}

.header__logo .logo_type {
  width: 75%;
  padding-top: 0.75rem;
}

@media (min-width: 960px) {
  .header__logo {
    flex-direction: column;
    gap: 1rem;
    width: 20%;
    max-width: 160px;
  }

  .header__logo .logo_icon {
    width: 40%;
  }

  .header__logo .logo_type {
    width: 60%;
    padding-top: 0;
  }

  .header.is_fixed .header__logo {
    width: 120px;
    gap: 0.5rem;
  }
}

.header__logo svg path,
.header__logo svg polygon,
.header__logo svg rect {
  fill: #fff;
  stroke-width: 0;
}

.gnav {
  display: none;
}

.gnav ul {
  list-style-type: none;
}

@media (min-width: 960px) {
  .gnav {
    display: block;
    position: relative;
  }

  .gnav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .gnav li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
  }

  .en .gnav li a {
    font-size: 1.0625rem;
  }

  .gnav li a:hover {
    text-decoration: underline;
    color: var(--hover-color);
  }

  a.gnav__lang {
    padding: 0.1rem 1rem;
    position: absolute;
    right: 0;
    top: -3.5rem;
    font-size: 0.875rem;
    font-family: var(--englsh-font);
    background-color: var(--point-red);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
  }

  a.gnav__lang:hover {
    background-color: var(--hover-color);
    text-decoration: none;
    color: #fff;
  }

  .header.is_fixed a.gnav__lang {
    top: -2rem;
  }
}

/*
##########################################################################
#- MV
##########################################################################
*/

.mv {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}
.mv__image {
  width: auto;
  height: 100%;
  max-width: none;
  position: relative;
  transform: translateX(-50%);
  z-index: -1;
}

@media (min-width: 600px) {
  .mv {
    aspect-ratio: 5/3;
  }

  .mv__image {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    transform: translateX(0);
  }
}

@media (min-width: 960px) {
  .mv {
    aspect-ratio: 16/9;
  }
}
@media (min-width: 1280px) {
  .mv {
    aspect-ratio: 8/3;
  }
}

.mv__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 90vw;
  max-width: 835px;
}

.mv__copy img {
  margin-inline: auto;
}

/*
##########################################################################
#- Footer
##########################################################################
*/

.footer {
  background-color: var(--text-color2);
  color: #fff;
  padding: 2rem 0;
}

.footer__logo {
  margin-inline: auto;
  width: 80vw;
  max-width: 320px;
}
.footer__logo .logo_icon {
  width: 25%;
  margin-inline: auto;
}
.footer__logo .logo_type {
  padding-top: 1rem;
  width: 50%;
  margin-inline: auto;
}

.footer__logo svg path,
.footer__logo svg polygon,
.footer__logo svg rect {
  fill: #fff;
  stroke-width: 0;
}

.footer__main {
  padding-top: 1rem;
}

@media (min-width: 960px) {
  .footer__wrapper {
    position: relative;
  }

  .footer__logo {
    width: 160px;
    position: absolute;
    top: 0;
    right: 0;
  }

  .footer__logo .logo_icon {
    width: 40%;
  }
  .footer__logo .logo_type {
    width: 70%;
  }

  .footer__main {
    padding-top: 0;
    width: 100%;
  }
}

.footer__main-heading {
  display: none;
}

.footer__main-section {
  padding-top: 2rem;
  margin-inline: auto;
  max-inline-size: max-content;
  font-family: var(--english-font);
}

.footer__main-section-heading {
  text-align: center;
  font-size: 0.875rem;
  font-style: italic;
}

.footer__main-section p {
  padding-top: 0.5rem;
  width: 85%;
  margin-inline: auto;
  color: var(--tertiary-color);
}

.footer__site-list {
  --_footer-site_list-col: 2;
  --_footer-site_list-row-gap: 1lh;
  --_footer-site_list-column-gap: 0.5em;


  padding-top: 1rem;
  display: grid;
  gap: var(--_footer-site_list-row-gap) var(--_footer-site_list-column-gap);
  grid-template-columns: repeat(var(--_footer-site_list-col), max-content);
}

.footer__site-list a {
  font-size: 0.875rem;
  color: var(--tertiary-color);
}

.en .footer__site-list a {
  font-size: 1rem;
}

.footer__site-list a:hover {
  color: var(--hover-color);
}

@media (min-width: 600px) {
  .footer__main-section p {
    width: auto;
    text-align: center;
  }

  .footer__site-list {
    --_footer-site_list-col: 3;
    min-width: 80vw;
  }
}

@media (min-width: 960px) {
  .footer__main-heading {
    text-align: left;
    width: 25%;
    display: block;
  }

  .footer__main-section {
    margin-inline: 0;
    max-inline-size: none;
  }

  .footer__main-section-heading {
    text-align: left;
  }

  .footer__main-section p {
    text-align: left;
  }

  .footer__site-list {
    --_footer-site_list-col: 5;
    --_footer-site_list-column-gap: 1.5em;

    min-width: 100%;
  }
}

.footer__copyright {
  display: block;
  font-family: var(--english-font);
  text-align: center;
  padding-top: 2.5rem;
}
