:root {
  /* spacing */
  --spacing-50: 4px;
  --spacing-100: 8px;
  --spacing-150: 12px;
  --spacing-200: 16px;
  --spacing-300: 24px;
  --spacing-400: 32px;
  --spacing-500: 40px;
  --spacing-600: 48px;
  --spacing-800: 64px;

  /* color */
  --color-surface-secondary: rgba(3, 3, 26, .04);
  --color-object-lowEmphasis: rgba(3, 3, 26, .61);
  --color-border-lowEmphasis: rgba(3, 3, 26, 8%);
  --color-green-200: #CFE3A4;
  --color-white-100: #fff;

  /* text-height */
  --text-height-140: 140%;

  /* text-size */
  --text-size-xl: 1.25rem;
  --text-size-m: .875rem;
  --text-size-xs: .75rem;

  /* max-width */
  --display-max-width: 600px;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
}

body {
  margin: 0;
}

.root {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header {
  align-items: center;
  background-color: var(--color-green-200);
  border-bottom: 1px solid var(--color-border-lowEmphasis);
  display: flex;
  height: 64px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  width: 100%;
}

.heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-200);
  width: 100%;
}

main {
  display: grid;
  gap: var(--spacing-200);
  max-width: var(--display-max-width);
  padding: var(--spacing-400) var(--spacing-200);
  place-items: center;
}

.main-title {
  font-size: var(--text-size-xl);
  font-weight: 600;
}

.main-section {
  align-items: center;
  display: grid;
  font-size: var(--text-size-m);
  gap: var(--spacing-200);
  justify-content: center;
  line-height: var(--text-height-140);
  text-align: center;
}

.main-section h1,
p {
  margin: 0;
}

footer {
  align-items: center;
  align-self: stretch;
  background: var(--color-green-200);
  bottom: 0;
  color: var(--color-white-100);
  display: flex;
  flex-direction: column;
  height: 413px;
  left: 0;
  padding-bottom: 40px;
  position: fixed;
  right: 0;

  &::after {
    background: linear-gradient(0deg, #c3dea0, #c3dea0 50%, transparent);
    bottom: 0;
    content: '';
    position: absolute;
    top: 50%;
    width: 100%;
    z-index: -1;
  }
}

@media (min-width: 1024px) {
  footer {
    height: 373px;
    padding-bottom: 0;
  }

  &::after {
    display: none;
  }
}

.footer-bg {
  display: block;
  /* 画像の最大高さ 1492/4 */
  height: 373px;
  margin: 0 auto;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.footer-contents {
  inset: 0 0 auto 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: 118px;
  /* display max size */
  max-width: 600px;
  position: absolute;
}

.icon-link-container {
  display: flex;
  justify-content: center;

  margin-bottom: 52px;
}

.icon-link-container > a:not(:last-child) {
  margin-right: 24px;
}

.internal-link-container {
  border-right: solid 1.5em transparent;
  display: flex;
  flex-wrap: wrap;
  /* 変数の最小である2xsが11pxのため、固定値で設定 */
  font-size: 10px;
  justify-content: center;
  letter-spacing: .04rem;
  line-height: 130%;
  overflow: hidden;  
  padding-left: var(--spacing-200);
  padding-right: var(--spacing-200);
}

.icon-link {
  display: block;
  position: relative;
  transition: 300ms;
  width: fit-content;
}

.icon-link:hover {
  transform: scale(1.1);
}

.icon-link-image {
  inset: 0;
  margin: 6px 8px;
  position: absolute;
}

.internal-link {
  color: var(--color-white-100);
  font-weight: 900;
  margin-bottom: var(--spacing-150);
  margin-left: var(--spacing-100);
  margin-right: var(--spacing-100);
  text-decoration: none;

  &::after {
    background-color: var(--color-white-100);
    border-radius: 1px;
    content: '';
    display: block;
    height: 2px;
    position: relative;
    width: 100%;
  }

  &:hover {
    /* NOTE: primitive_colorに設定ないので、一旦固定値 */
    color: #f96859;
    /* NOTE: Linkコンポーネントのfilterを無効化 */
    filter: none !important;

    &::after {
      background-color: #f96859;
      filter: none !important;
    }
  }
}

.links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-300);
  justify-content: center;
}

.copyright {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .04rem;
  line-height: 130%;
  margin-bottom: var(--spacing-100);
  padding: 0 16px;

  small {
    align-items: center;
    display: flex;
    font-size: inherit;
    margin-bottom: var(--spacing-50);
  }
}

.copyright .copyright-symbol {
  display: inline-block;
  font-size: 1.2em;
}

.copyright > small:not(:last-child) {
  margin-right: var(--spacing-100);
}

.copyright-company {
  height: fit-content;
  line-height: 1;
}
