:root {
  --color-bg: #f7f4ed;
  --color-black: #000000;
  --color-blue-500: #3e5477;
  --color-gray: #d9d9d9;
  --color-white: #ffffff;
  --contents-width: 600;
  --design-width: 1200;
  --font-noto-sans: "Noto Sans JP", sans-serif;
  --font-note-self: "Noto Serif JP", serif;
  --font-size-base: 16;
}

@media screen and (max-width: 767px) {
  :root {
    --contents-width: 767;
    --design-width: 767;
    --font-size-base: 14;
  }
}

/* ---------------------------------------------
    html, body
--------------------------------------------- */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: 64px;
}

html,
body {
  -webkit-text-size-adjust: 100%;
  background: var(--color-bg);
  color: var(--color-black);
  font-family: var(--font-note-self);
  font-size: calc(var(--font-size-base) * 1px);
  font-weight: 400;
  scroll-behavior: smooth;
  scroll-margin-top: 130px;
}

body.no-scroll {
  overflow: hidden;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------------------------------------------
    <img> tag
--------------------------------------------- */
img {
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}

/* ---------------------------------------------
    <a> tag
--------------------------------------------- */
a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

/* ---------------------------------------------
    アクセシビリティ用：非表示の見出し
--------------------------------------------- */
.u-visuallyHidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* ---------------------------------------------
    Container
--------------------------------------------- */
.container {
  width: calc(100% - 200px);
}

.inner {
  margin: 0 auto;
  max-width: calc(var(--contents-width) * 1px);
  width: 100%;
}

@media only screen and (max-width: 860px) {
  .container {
    width: 100%;
  }

  .inner {
    max-width: 100%;
    padding: 0 20px;
    width: auto;
  }
}

/* ---------------------------------------------
    menu
--------------------------------------------- */
.menu {
  -ms-overflow-style: none;
  align-items: center;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  justify-content: space-between;
  overflow-x: hidden;
  overflow-y: scroll;
  padding: 48px 0 8px;
  position: fixed;
  right: 0;
  scrollbar-width: none;
  top: 0;
  width: 200px;
  z-index: 1100;
}

.menu__button {
  cursor: pointer;
  height: 26px;
  position: relative;
  width: 40px;
  z-index: 1200;
}

.menu__button span {
  background: var(--color-black);
  border-radius: 100vw;
  content: "";
  height: 4px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.2s;
  width: 40px;
}

.menu__button span:nth-of-type(2) {
  top: 13px;
}

.menu__button span:nth-of-type(3) {
  top: 26px;
}

.menu__button.is-open span:nth-of-type(1) {
  top: 50%;
  transform: rotate(45deg);
}

.menu__button.is-open span:nth-of-type(2) {
  display: none;
}

.menu__button.is-open span:nth-of-type(3) {
  top: 50%;
  transform: rotate(-45deg);
}

.menu__logo {
  position: relative;
}

.menu__logo img {
  width: 65px;
}

.menu__logo::after {
  background: url(../images/logo_header_sub.svg);
  background-position: center;
  background-repeat: repeat;
  background-size: cover;
  content: "";
  height: 96px;
  position: absolute;
  right: -48px;
  top: 17px;
  width: 36px;
}

.menu__banner img {
  width: 164px;
}

.toggleMenu {
  display: none;
}

.toggleMenu.is-open {
  align-items: center;
  animation: fadeIn 0.4s ease-out forwards;
  background: var(--color-white);
  display: flex;
  height: 100vh;
  left: 0;
  justify-content: center;
  position: fixed;
  top: 0;
  width: calc(100% - 200px);
  z-index: 1000;
}

.toggleMenu__list {
  column-gap: 40px;
  display: flex;
  font-size: 26px;
  letter-spacing: 0.2em;
}

.toggleMenu__list li {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media only screen and (max-width: 860px) {
  .menu {
    align-items: center;
    background: transparent;
    display: flex;
    flex-direction: unset;
    height: 70px;
    justify-content: center;
    padding: 0;
    width: 100%;
  }

  .menu__button {
    height: 20px;
    left: 20px;
    position: absolute;
    width: 30px;
  }

  .menu__button span {
    height: 3px;
    width: 30px;
  }

  .menu__button span:nth-of-type(2) {
    top: 8px;
  }

  .menu__button span:nth-of-type(3) {
    top: 16px;
  }

  .menu__logo img {
    width: 80px;
  }

  .menu__logo::after {
    display: none;
  }

  .menu__banner {
    display: none;
  }

  .toggleMenu.is-open {
    width: 100%;
  }

  .toggleMenu__list {
    font-size: 18px;
  }
}

/* ---------------------------------------------
    footer
--------------------------------------------- */
.footer {
  padding: 80px 0;
}

.footer__logo {
  text-align: center;
}

.footer__logo img {
  width: 163px;
}

@media only screen and (max-width: 860px) {
  .footer {
    padding: 80px 0;
  }

  .footer__logo img {
    width: 100px;
  }
}

/* ---------------------------------------------
    iOS 26 Safari ステータスバー・タブバー透過防止
--------------------------------------------- */
.ios-safe-status-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 5px;
  background-color: #000;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 9999;
}

.ios-safe-tab-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #000;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 9999;
}
