/* ===============================================
# 共通コンポーネント
=============================================== */

html {
  scrollbar-gutter: stable;
}

/* button リセット */
button {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* ハンバーガーボタン（3本線） PC/SP 共通表示 */
#menuBtn {
  padding: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 26px;
  right: 39px;
}

@media only screen and (max-width: 767px) {
  #menuBtn {
    top: 20px;
    right: 19px;
  }
}

.header__hamburger-button {
  position: relative;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.header__hamburger-button span {
  width: 32px;
  height: 2px;
  background-color: #333;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, rotate 0.3s ease;
  position: absolute;
  left: 50%;
  translate: -50% -50%;
  pointer-events: none;
}

.header__hamburger-button span:nth-of-type(1) {
  top: calc(50% - 8px);
}

.header__hamburger-button span:nth-of-type(2) {
  top: 50%;
}

.header__hamburger-button span:nth-of-type(3) {
  top: calc(50% + 8px);
}

.header__hamburger-button.is-open span:nth-of-type(1) {
  rotate: 35deg;
  top: 50%;
}

.header__hamburger-button.is-open span:nth-of-type(2) {
  opacity: 0;
  visibility: hidden;
}

.header__hamburger-button.is-open span:nth-of-type(3) {
  rotate: -35deg;
  top: 50%;
}

/* メインナビ表示時のオーバーレイ・body スクロール防止 */
body.is-hidden {
  overflow: hidden;
}

.mainNav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.20);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mainNav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* #mainNav：高さで開閉アニメーション（開く・閉じる両方）。opacity/visibility は使わない */
#mainNav {
  height: auto;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: max-height 0.9s ease;
}

#mainNav.active {
  max-height: 90vh;
  pointer-events: auto;
}

.mainNav__inner {
  box-sizing: border-box;
  padding: 51px 0 50px 90px;
}

#mainNav.active .nav-menu--grid {
  opacity: 1;
  transition: none;
}

#mainNav .nav-menu--grid li {
  opacity: 0;
  transform: translateX(5px);
  transition: opacity 1s ease, transform 1s ease;
}

#mainNav.active .nav-menu--grid li {
  opacity: 1;
  transform: translateY(0);
}

#mainNav.active .nav-menu--grid li:nth-child(1)  { transition: 1s ease 0.2s; }
#mainNav.active .nav-menu--grid li:nth-child(2)  { transition: 1s ease 0.3s; }
#mainNav.active .nav-menu--grid li:nth-child(3)  { transition: 1s ease 0.4s; }
#mainNav.active .nav-menu--grid li:nth-child(4)  { transition: 1s ease 0.5s; }
#mainNav.active .nav-menu--grid li:nth-child(5)  { transition: 1s ease 0.6s; }
#mainNav.active .nav-menu--grid li:nth-child(6)  { transition: 1s ease 0.7s; }
#mainNav.active .nav-menu--grid li:nth-child(7)  { transition: 1s ease 0.8s; }
#mainNav.active .nav-menu--grid li:nth-child(8)  { transition: 1s ease 0.9s; }
#mainNav.active .nav-menu--grid li:nth-child(9)  { transition: 1s ease 1s; }
#mainNav.active .nav-menu--grid li:nth-child(10) { transition: 1s ease 1.1s; }

@media only screen and (max-width: 767px) {
  #mainNav {
    max-height: 0;
    padding: 0;
  }

  #mainNav.active {
    max-height: calc(100vh - 90px);
  }

  .mainNav__inner {
    padding: 51px 0 50px 61px;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
}

/* TOP：SP版スマートスライダー */
@media (max-width: 767px) {
  div#n2-ss-2 .n2-ss-slide-backgrounds {
   height: 378px !important;
  }
}

/* ==== footer ===================== */

.footer {
  border-top: 1px solid #C1C1C1;
  padding-block: 70px 74px;
}

@media (max-width: 767px) {
  .footer {
    padding-block: 48px 33px;
  }
}

.footer__content {
  max-width: calc(1070px + var(--padding-inner) * 2);
  margin: 0 auto;
  padding-inline: var(--padding-inner);
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .footer__content {
    max-width: 500px;
  }
}

.footer__main {
display: flex;
gap: clamp(40px, calc(94 * 100 / var(--cq-ref) * 1.05cqw), 94px);
padding-left: 15px;
}

@media (max-width: 767px) {
  .footer__main {
    flex-direction: column;
    gap: 29px;
    padding-left: 0;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
}


.footer__logo {
  display: block;
  width: 155px;
}

@media (max-width: 767px) {
  .footer__logo {
    width: 132px;
  }
}

.footer__logo img {
  display: block;
  height: auto;
  object-fit: contain;
}

.footer__address {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: 14px;
  line-height: 1.714;
  letter-spacing: 0.05em;
  color: #111111;
  margin-top: 23px;
  padding: 0;
}

@media (max-width: 767px) {
  .footer__address {
    margin-top: 15px;
    gap: 25px;
  }
}

.footer__address-line {
  display: block;
}

.footer__nav {
  display: flex;
  gap: clamp(20px, calc(40 * 100 / var(--cq-ref) * 1cqw), 40px);
}

@media (max-width: 767px) {
  .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
}

.footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 27px;
  min-width: 166px;
}

@media (max-width: 767px) {
  .footer__nav-list {
    gap: 16px;
    min-width: auto;
  }
}

.footer__nav-item {
  margin: 0;
  padding: 0;
  line-height: 1.45;
}

.footer__nav-link {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.05em;
  color: #111111 !important;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  will-change: color;
}
@media (any-hover: hover) {
  .footer__nav-link:hover {
    color: var(--main-color) !important;
    opacity: 1 !important;
  }
}

@media (max-width: 767px) {
  .footer__nav-link {
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0.01em;
  }
}

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 107px;
}

@media (max-width: 767px) {
  .footer__bottom {
    margin-top: 30px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 9px;
  }
}

.footer__copy {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: #111111;
  text-align: center;
  margin: 0;
  padding: 0;
  grid-column: 2;
  justify-self: center;
}

@media (max-width: 767px) {
  .footer__copy {
    text-align: center;
    line-height: 1.53;
    letter-spacing: 0.01em;
  }
}

.footer__privacy {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-semibold);
  font-size: 13px;
  line-height: 1.85;
  letter-spacing: 0.05em;
  color: #111111;
  text-decoration: none;
  grid-column: 3;
  justify-self: end;
  transition: color 0.3s ease;
}

@media (max-width: 767px) {
  .footer__privacy {
    text-align: center;
    letter-spacing: 0.01em;
  }
}

@media (any-hover: hover) {
  .footer__privacy:hover {
    color: var(--main-color);
  }
}

/* ==== view more ボタン ===================== */

.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.more-btn__text {
  transition: color 0.3s ease-in-out;
  font-family: var(--font-family-second);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(14px, calc(16 * 100 / var(--cq-ref) * 1cqw), 16px);
  letter-spacing: 0.1em;
  color: #111111;
  line-height: 1.5;
}

@media (any-hover: hover) {
  .more-btn:hover .more-btn__text {
    color: var(--main-color);
  }

  .more-btn:hover .more-btn__icon {
    transform: translateX(5px);
  }
}

.more-btn__icon {
  width: clamp(24px, calc(28 * 100 / var(--cq-ref) * 1cqw), 28px);
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
}

.more-btn__icon img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
