@use "sass:map";
@use "sass:math";
@use "global/acms-common" as acms;
@use "global/common" as global;



#adminBox {
  margin-top: 20px;
}

/* ------------------------------
　　ベース
------------------------------ */
html {
  font-family: var(--font-base);
  line-height: var(--line-height-xl);
  color: var(--color-text);
  background: var(--color-white);
  scroll-behavior: smooth;

  @include acms.media-breakpoint-up(md) {
    scroll-padding-top: var(--header-height-fixed);

    &:has(.nav-bottom.sticky) {
      scroll-padding-top: 12rem;
    }

    &:has(.logo-center.sticky) {
      scroll-padding-top: 10rem;
    }
  }

}

body {
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* リンクの設定 */
a {
  border: none;
}

::placeholder {
  color: var(--color-gray70) !important;
}

/* コンテナー
----------------------------- */
.acms-container,
.container-md,
.container-sm {
  box-sizing: border-box;
  padding-right: var(--container-space-x);
  padding-left: var(--container-space-x);
  margin-right: auto;
  margin-left: auto;

  @if global.$enable-iphonex == true {
    padding-right: calc(env(safe-area-inset-right) + var(--container-space-x));
    padding-left: calc(env(safe-area-inset-left) + var(--container-space-x));
  }

  .acms-container,
  .container-md,
  .container-sm {
    padding-right:0;
    padding-left:0;
  }
}

.acms-container {
  max-width: var(--container);
}

.container-md {
  max-width: var(--container-md);
}

.container-sm {
  --gutter: var(--gutter-sm);

  max-width: var(--container-sm);
}

/* グリッドシステム
----------------------------- */
.acms-cssgrid {
  --acms-gap: var(--col-gutter);
}

/* レイアウト
----------------------------- */
.content-wrapper {
  padding-top: var(--page-title-space-bottom);
}

/* 2カラム */
.content-wrapper.two-columns {
  display: flex;
  flex-direction: column;
  gap: 3.5rem 3rem;
  justify-content: space-between;

  @include acms.media-breakpoint-between(md, lg) {
    max-width: 44rem;
    margin: 0 auto;
  }

  @include acms.media-breakpoint-up(lg) {
    flex-direction: row;
  }
}

@include acms.media-breakpoint-up(lg) {
  .main-container {
    width: var(--width-main-container);
  }

  .side-container {
    width: var(--width-side-container);
  }
}

/* 固定コンテンツ */
.sticky-contents {
  position: fixed;
  bottom: 0;
  z-index: var(--zindex-fixed-contents);
  box-sizing: border-box;
  display: none;
  width: 100%;
  padding: 1rem 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.3s, transform 0.2s;

  &.is-centered {
    text-align: center;
  }

  &.is-show {
    opacity: 1;
    transform: translateY(0);
  }

  &.is-active {
    display: block;
  }

  &.is-bg {
    background-color: var(--color-footer-sticky);
  }
}

/* その他上書き
----------------------------- */
.js-open-street-map {
  z-index: 0;
}
