:root, :host {
  --COLOR_PURPLE: #453288;
  --COLOR_BLACK: #201f25;
  --COLOR_RED: #b23838;
  --COLOR_GRAY: #6d697d;
  --COLOR_GRAY_LIGHT: #d2d1d0;
  --COLOR_WHITE: #fff;
  --COLOR_BEIGE_LIGHT: #fbfaf6;
  --COLOR_BEIGE_DARK: #f2f0ee;
  --COLOR_PINK: #f8ecec;
  --FONT_FAMILY: "Outfit", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN", 游ゴシック Medium, 游ゴシック体, Yu Gothic Medium, YuGothic, "メイリオ", sans-serif;
  --FONT_WEIGHT: 500;
  --FONT_WEIGHT_BOLD: 700;
  --FONT_SIZE: 1.4rem;
  --LINE_HEIGHT: 1.5;
  --SPACING_CONTENT: 16px;
  --WIDTH_CONTENT: 1140px;
  --HEIGHT_LOCAL_MENU: 56px;
  --HEIGHT_HEADER_AREA: calc(var(--HEIGHT_EMERGENCY, 0px) +
    var(--HEIGHT_HEADER, 0px));
  --DURATION: .4s;
  --EASING: cubic-bezier(.4, 0, .2, 1);
  --TRANSITION: var(--DURATION) var(--EASING);
  --Z_INDEX_HEADER: 1000;
  --Z_INDEX_SCROLL_TO_TOP: 100;
  --TRANSLATE_HOVER: 6px;
  --TRANSLATE_HOVER_SM: 4px;
  --TRANSLATE_HOVER_LG: 8px;

  @media (width >= 768px) {
    --FONT_SIZE: 1.6rem;
    --SPACING_CONTENT: 40px;
    --HEIGHT_LOCAL_MENU: 72px;
  }
}

*, :before, :after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: var(--HEIGHT_HEADER_AREA);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: none;
  overflow-wrap: anywhere;
  line-break: strict;
  font-size: 62.5%;

  &:has(.l-local-menu) {
    scroll-padding-top: calc(var(--HEIGHT_HEADER_AREA) +
      var(--HEIGHT_LOCAL_MENU));
  }
}

body {
  height: 100%;
  margin: 0;
  overflow-x: clip;

  &.scroll-locked {
    overflow: hidden;
  }
}

body {
  color: var(--COLOR_BLACK);
  font-size: var(--FONT_SIZE);
  font-family: var(--FONT_FAMILY);
  line-height: var(--LINE_HEIGHT);
  text-rendering: optimizespeed;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

b {
  font-weight: var(--FONT_WEIGHT_BOLD);
}

i {
  font-style: italic;
}

s {
  text-decoration: line-through;
}

strong, em {
  font-style: normal;
  font-weight: var(--FONT_WEIGHT);
}

ul, ol, dl {
  margin: 0;
  padding: 0;
}

ul, ol {
  &[class] {
    list-style: none;
  }
}

table {
  border-collapse: collapse;
}

img, svg {
  vertical-align: bottom;
  max-width: 100%;
  height: auto;
}

iframe, video {
  vertical-align: bottom;
  border: 0;
  max-width: 100%;
  height: auto;
}

form {
  margin: 0;
}

button {
  text-align: left;
  appearance: none;
  font: inherit;
  color: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  margin: 0;
  padding: 0;
}

::placeholder {
  opacity: 1;
}

input {
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;

  &::-webkit-search-cancel-button {
    appearance: none;
  }
}

select {
  color: inherit;
  font: inherit;
  line-height: inherit;
}

textarea {
  color: inherit;
  font: inherit;
  line-height: inherit;
  box-sizing: border-box;
  display: block;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

label {
  cursor: pointer;
}

summary {
  cursor: pointer;
  list-style: none;

  &::-webkit-details-marker {
    display: none;
  }
}

dialog {
  color: inherit;
  border: none;
  padding: 0;

  @media (scripting: none) {
    display: block;
    position: relative;
  }
}

.m-icon-link {
  --size: 32px;
  --color: var(--COLOR_PURPLE);
  width: var(--size);
  height: var(--size);
  transition: transform var(--TRANSITION);
  vertical-align: text-bottom;
  place-items: center;
  display: inline-grid;
}

.m-icon-link__svg {
  width: 20px;
  height: 20px;
  fill: var(--color);
  transition: fill var(--TRANSITION);
}

.m-icon-link--min {
  --size: 20px;
}

.m-icon-link--color-current {
  --color: currentColor;
}

:host {
  color: var(--COLOR_BLACK);
  font-size: var(--FONT_SIZE);
  font-family: var(--FONT_FAMILY);
  line-height: var(--LINE_HEIGHT);
  text-rendering: optimizespeed;
  display: block;
}

.wrapper {
  --size-scroll-to-top: 47px;
  margin-top: calc(var(--size-scroll-to-top) + 8px);
  padding-top: 9px;
  position: relative;

  @media (width >= 768px) {
    --size-scroll-to-top: 55px;
    padding-top: 17px;
  }
}

.scroll-to-top {
  z-index: var(--Z_INDEX_SCROLL_TO_TOP);
  position: fixed;
  bottom: 16px;
  right: 8px;

  @media (width >= 768px) {
    bottom: 40px;
    right: 40px;
  }

  &.is-settled {
    position: absolute;
    bottom: 100%;
  }
}

.scroll-to-top__link {
  width: var(--size-scroll-to-top);
  height: var(--size-scroll-to-top);
  background-color: var(--COLOR_WHITE);
  color: var(--COLOR_PURPLE);
  transition: background-color var(--TRANSITION),
    color var(--TRANSITION);
  border: 1px solid;
  border-radius: 4px;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  padding-bottom: 8px;
  display: flex;

  &:before {
    content: "";
    background-color: currentColor;
    width: 20px;
    height: 20px;
    position: relative;
    top: 4px;
    transform: scale(1, -1);
    mask-image: url("/assets/img/common/ico-down.svg");
  }

  @media (width >= 768px) {
    @media (any-hover: hover) {
      &:hover {
        background-color: var(--COLOR_PURPLE);
        color: var(--COLOR_WHITE);
      }
    }
  }
}

.scroll-to-top__text {
  font-size: 1.2rem;

  @media (width >= 768px) {
    font-size: 1.4rem;
  }
}

.body {
  padding: 0 var(--SPACING_CONTENT);
}

.nav {
  display: none;

  @media (width >= 768px) {
    background-color: var(--COLOR_BEIGE_DARK);
    padding: 24px;
    display: block;
    position: relative;
    overflow: hidden;

    &:before {
      --w: 322px;
      content: "";
      bottom: 0;
      left: min((100% - var(--w) + 12px),
        (50% + 485px));
      width: var(--w);
      pointer-events: none;
      background-image: url("/assets/img/common/logo-footer-bg.webp");
      height: 220px;
      position: absolute;
    }
  }
}

.nav__list {
  @media (width >= 768px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 24px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    position: relative;
  }
}

.nav__item {
  @media (width >= 768px) {
    border-bottom: 1px solid var(--COLOR_GRAY_LIGHT);
  }
}

.nav__link {
  @media (width >= 768px) {
    justify-content: space-between;
    align-items: center;
    column-gap: 16px;
    height: 100%;
    padding: 16px 24px 16px 16px;
    display: flex;

    @media (any-hover: hover) {
      &:hover {
        color: var(--COLOR_PURPLE);
        text-decoration: underline;
      }
    }
  }
}

.nav__icon {
  display: flex;
}

.info {
  flex-direction: column;
  row-gap: 32px;
  padding-bottom: 32px;
  display: flex;

  @media (width >= 768px) {
    max-width: var(--WIDTH_CONTENT);
    box-sizing: content-box;
    flex-direction: row;
    justify-content: space-between;
    column-gap: 16px;
    margin: 0 auto;
    padding: 40px 0 56px;
  }
}

.access {
  background: url("/assets/img/common/logo-footer-bg.webp")
    var(--COLOR_BEIGE_DARK) bottom 0 right -12px no-repeat;
  border-radius: 4px;
  padding: 24px 16px;

  @media (width >= 768px) {
    background: none;
    border-radius: 0;
    padding: 0;
    font-size: 1.4rem;
  }
}

.access__list {
  row-gap: 24px;
  display: grid;

  @media (width >= 768px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.access__item {
  row-gap: 4px;
  display: grid;
}

.access__label-icon {
  display: flex;
}

.access__label-link {
  align-items: center;
  column-gap: 8px;
  width: fit-content;
  display: flex;

  & .access__label-icon {
    transition: transform var(--TRANSITION);
  }

  @media (width >= 768px) {
    @media (any-hover: hover) {
      &:hover {
        color: var(--COLOR_PURPLE);
        text-decoration: underline;

        & .access__label-icon {
          transform: translateX(4px);
        }
      }
    }
  }
}

.access__location {
  flex-wrap: wrap;
  column-gap: 16px;
  display: flex;
}

.access__tel {
  column-gap: 4px;
  display: flex;

  &:before {
    content: "";
    background-color: var(--COLOR_PURPLE);
    width: 20px;
    height: 20px;
    mask-image: url("/assets/img/common/ico-footer-tell.svg");
  }
}

.sns__list {
  justify-content: center;
  column-gap: 32px;
  display: flex;
}

.sns__image {
  width: 50px;

  @media (width >= 768px) {
    width: 64px;
  }
}

.sns__more {
  margin-top: 24px;
}

.sns__more-link {
  background-color: var(--COLOR_PURPLE);
  border: 1px solid var(--COLOR_PURPLE);
  color: var(--COLOR_WHITE);
  text-align: center;
  transition: background-color var(--TRANSITION),
    color var(--TRANSITION);
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  column-gap: 8px;
  padding: 8px 16px 8px 24px;
  display: flex;

  @media (width >= 768px) {
    padding: 16px 16px 16px 24px;

    @media (any-hover: hover) {
      &:hover {
        background-color: var(--COLOR_WHITE);
        color: var(--COLOR_PURPLE);
      }
    }
  }
}

.sns__more-text {
  flex: 1;
}

.sns__more-icon {
  display: flex;
}

.bottom {
  --bg: var(--COLOR_PURPLE);
  border-image-source: linear-gradient(var(--bg), var(--bg));
  color: var(--COLOR_WHITE);
  border-image-slice: 0 fill;
  border-image-width: 1;
  border-image-outset: 0 100vw;
  padding: 24px 0;

  @media (width >= 768px) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0;
  }
}

.utility {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  display: grid;

  @media (width >= 768px) {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.4rem;
    display: flex;
  }
}

.utility__item {
  @media (width >= 768px) {
    align-items: center;
    column-gap: 16px;
    display: flex;

    &:after {
      content: "";
      background-color: currentColor;
      width: 1px;
      height: 16px;
      rotate: 25deg;
    }

    &:last-child {
      &:after {
        content: unset;
      }
    }
  }
}

.utility__link {
  @media (width >= 768px) {
    @media (any-hover: hover) {
      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.copyright {
  text-align: center;
  margin-top: 32px;

  @media (width >= 768px) {
    margin-top: 24px;
  }
}

.copyright__text {
  font-size: 1.2rem;
}
