:root {
  --ebanat-bg: #f5f4f0;
  --ebanat-gold: #a69a45;
  --ebanat-text: #222;
}

#ast-scroll-top {
  display: none !important;
}

.ebanat-site-header,
.ebanat-site-header *,
.ebanat-common-footer,
.ebanat-common-footer * {
  box-sizing: border-box;
}

.ebanat-site-header.header {
  position: relative;
  z-index: 100;
  display: flex;
  min-height: 94px;
  padding: 24px 48px;
  border-bottom: 1px solid rgba(166, 154, 69, .18);
  background: var(--ebanat-bg);
  color: var(--ebanat-text);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  align-items: center;
  justify-content: space-between;
}

body.ebanat-top .ebanat-site-header.header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 0;
  padding: 26px 48px;
  border-bottom: 0;
  background: transparent;
}

.ebanat-site-header .brand {
  position: relative;
  z-index: 102;
  display: block;
  width: 154px;
  height: 42px;
  overflow: hidden;
  text-decoration: none;
}

.ebanat-site-header .brand img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 154px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.ebanat-site-header .nav {
  display: flex;
  font-size: 14px;
  gap: 34px;
}

.ebanat-site-header .nav a {
  position: relative;
  min-width: max-content;
  padding: 8px 0;
  color: var(--ebanat-text);
  text-align: center;
  text-decoration: none;
}

.ebanat-site-header .nav a::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ebanat-gold);
  content: "";
  transition: width .3s ease;
}

.ebanat-site-header .nav a:hover::after { width: 100%; }
.ebanat-site-header .nav .nav-ja { display: none; }
.ebanat-site-header .nav a:hover .nav-en { display: none; }
.ebanat-site-header .nav a:hover .nav-ja { display: inline; }

.ebanat-site-header .menu-toggle {
  position: relative;
  z-index: 102;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.ebanat-site-header .menu-toggle:hover,
.ebanat-site-header .menu-toggle:focus,
.ebanat-site-header .menu-toggle:active {
  border-color: transparent;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.ebanat-site-header .menu-toggle:focus-visible {
  outline: 1px solid var(--ebanat-gold);
  outline-offset: 2px;
}

.ebanat-site-header .menu-toggle span {
  position: absolute;
  left: 9px;
  width: 26px;
  height: 1.5px;
  background: #4f5547;
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}

.ebanat-site-header .menu-toggle span:nth-child(1) { top: 13px; }
.ebanat-site-header .menu-toggle span:nth-child(2) { top: 21px; }
.ebanat-site-header .menu-toggle span:nth-child(3) { top: 29px; }

.ebanat-common-footer.site-footer {
  position: relative;
  overflow: hidden;
  padding: 92px 8% 26px;
  background: #ece9de;
  color: #2f302b;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

.ebanat-common-footer.site-footer::before {
  position: absolute;
  background:
    radial-gradient(circle at 90% 12%, rgba(166, 154, 69, .12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .12), transparent 42%);
  content: "";
  pointer-events: none;
  inset: 0;
}

.ebanat-common-footer .footer-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
}

.ebanat-common-footer .footer-brand-block {
  display: grid;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(126, 117, 64, .28);
  align-items: center;
  grid-template-columns: 1fr;
}

.ebanat-common-footer .footer-logo {
  position: relative;
  display: block;
  width: 154px;
  height: 46px;
  overflow: hidden;
  justify-self: start;
}

.ebanat-common-footer .footer-logo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 154px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.ebanat-common-footer .footer-links {
  display: grid;
  padding: 58px 0 54px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 42px;
}

.ebanat-common-footer .footer-column h3 {
  margin: 0 0 22px;
  color: #7e7540;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
}

.ebanat-common-footer .footer-column p {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 2;
}

.ebanat-common-footer .footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ebanat-common-footer .footer-column li + li { margin-top: 13px; }

.ebanat-common-footer .footer-column a {
  position: relative;
  display: inline-block;
  color: #444;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .035em;
  text-decoration: none;
  transition: color .3s ease, transform .3s ease;
}

.ebanat-common-footer .footer-column a::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ebanat-gold);
  content: "";
  transition: width .3s ease;
}

.ebanat-common-footer .footer-column a:hover {
  color: #7e7540;
  transform: translateX(3px);
}

.ebanat-common-footer .footer-column a:hover::after { width: 100%; }

.ebanat-common-footer .footer-bottom {
  display: grid;
  padding-top: 24px;
  border-top: 1px solid rgba(126, 117, 64, .24);
  color: #666;
  font-size: 10.5px;
  letter-spacing: .06em;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}

.ebanat-common-footer .footer-bottom a {
  color: #666;
  text-decoration: none;
  transition: color .3s ease;
}

.ebanat-common-footer .footer-bottom a:hover { color: #7e7540; }
.ebanat-common-footer .footer-bottom-center { text-align: center; }
.ebanat-common-footer .footer-bottom-right { text-align: right; }

.ebanat-common-footer .footer-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.ebanat-common-footer .footer-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .ebanat-site-header.header {
    min-height: 88px;
    padding: 22px 24px;
  }

  body.ebanat-top .ebanat-site-header.header {
    position: absolute;
    min-height: 0;
    padding: 22px 24px;
  }

  .ebanat-site-header .menu-toggle { display: block; }

  .ebanat-site-header .menu-toggle.is-open span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
  }

  .ebanat-site-header .menu-toggle.is-open span:nth-child(2) { opacity: 0; }

  .ebanat-site-header .menu-toggle.is-open span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
  }

  .ebanat-site-header .nav {
    position: fixed;
    z-index: 101;
    display: flex;
    padding: 96px 32px 48px;
    background: rgba(245, 244, 240, .98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    inset: 0;
    gap: 0;
  }

  .ebanat-site-header .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .ebanat-site-header .nav a {
    width: 100%;
    max-width: 340px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(166, 154, 69, .24);
    font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 17px;
    letter-spacing: .08em;
  }

  .ebanat-site-header .nav a:first-child { border-top: 1px solid rgba(166, 154, 69, .24); }
  .ebanat-site-header .nav a::after { display: none; }
  .ebanat-site-header .nav .nav-en { display: none; }
  .ebanat-site-header .nav .nav-ja { display: inline; }
  body.menu-open { overflow: hidden; }

  .ebanat-common-footer.site-footer { padding: 78px 28px 24px; }
  .ebanat-common-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 32px;
  }
}

@media (max-width: 680px) {
  .ebanat-common-footer.site-footer { padding: 68px 24px 22px; }
  .ebanat-common-footer .footer-links {
    padding: 46px 0 42px;
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .ebanat-common-footer .footer-bottom {
    text-align: left;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ebanat-common-footer .footer-bottom-center,
  .ebanat-common-footer .footer-bottom-right { text-align: left; }
}

@media (max-width: 560px) {
  .ebanat-site-header .brand {
    width: 132px;
    height: 38px;
  }

  .ebanat-site-header .brand img { width: 132px; }
}
