@media screen and (orientation: portrait) {
  * {
    transition-delay: 0s !important;
  }
}

section {
  clear: both;
}

.fade-in {
  -webkit-animation: fadeIn 2s;
  animation: fadeIn 2s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fade-out {
  -webkit-animation: fadeOut 1s;
  animation: fadeOut 1s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.is-fluid {
  @media screen and (max-width: 375px) {
    width: 300px;
    margin-inline: auto;
  }

  @media screen and (min-width: 376px) and (max-width: 1079px) {
    padding-right: 5%;
    padding-left: 5%;
  }
}

#opening-animation {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--color-neutral-900);
  opacity: 1;
  transition: all 2s;
  visibility: hidden;
  will-change: width;
  pointer-events: none;
  z-index: 99999;

  .overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150vw;
    height: 150vw;
    background: var(--color-brand);
    transition: all 2.5s;
  }

  .brand-name_kanji {
    position: absolute;
    opacity: 0;
    transition: all 1s;
  }

  .brand-name_romaji {
    position: absolute;
    margin: auto;
    font-family: var(--font-mincho);
    font-size: 4rem;
    color: var(--color-neutral-0);
    visibility: hidden;

    @media screen and (orientation: portrait) and (max-width: 768px) {
      font-size: 3rem;
    }
  }
}

#slider {
  max-height: 100dvh;
  width: 100%;
  background: var(--color-neutral-900);
  aspect-ratio: 1.725/1;

  @media screen and (orientation: portrait) {
    max-height: calc(100vw * 0.65);
  }
}

#scroll-down {
  position: absolute;
  bottom: 3rem;
  left: calc(50% + 3.25em);
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  color: var(--color-neutral-0);
  mix-blend-mode: difference;

  @media screen and (orientation: portrait) {
    display: none;
  }

  &::after {
    content: "";
    position: absolute;
    bottom: -1.5em;
    left: -1.5em;
    width: 1px;
    height: 5em;
    background: var(--color-neutral-0);
    mix-blend-mode: difference;
    -webkit-animation: sdl 5s linear infinite;
    animation: sdl 5s linear infinite;
  }
}

@-webkit-keyframes sdl {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }

  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }

  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }

  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

@keyframes sdl {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }

  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }

  50.1% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }

  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

#logo {
  position: absolute;
  top: 6.765svw;
  left: 6.765svw;
  width: 100px;
  height: 100px;
  border: 1px solid var(--color-neutral-0);
  mix-blend-mode: difference;

  @media screen and (orientation: portrait) and (max-width: 768px) {
    display: none;
  }

  span {
    position: absolute;
    right: 0;
    bottom: -1.6rem;
    left: 0;
    text-align: center;
    color: var(--color-neutral-0);
    font-size: 0.85rem;
    word-break: keep-all;
    mix-blend-mode: difference;
    opacity: 0;
  }
}

#ingredients {
  padding: 0;
}

#introduction {
  display: flex;
  flex-direction: column;
  grid-gap: 40px;
  padding-top: 40px;
  padding-bottom: 74px;
  background: var(--color-neutral-0);

  @media screen and (min-width: 1000px) {
    grid-gap: 100px 0;
    padding: 74px 0;
  }

  & > * {
    margin-inline: auto;

    @media screen and (min-width: 1000px) {
      display: flex;
      grid-gap: 80px;
      flex-direction: row;
      justify-content: space-between;
      max-width: 100%;
      width: 1000px;
    }
  }

  hgroup {
    h2 {
      margin: 0;
      font-size: 26px;
      margin: 0;
      padding-left: 3em;
      text-indent: -3em;
      text-align: left;
      font-size: 30px;
      line-height: 1.19;
      white-space: nowrap;

      @media screen and (max-width: 999px) {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
        padding: 0;
        text-align: center;
        text-indent: 0;
      }

      @media screen and (min-width: 1000px) {
        font-size: 45px;
      }
    }

    p {
      margin: 0;
      line-height: 1.75;

      @media screen and (max-width: 999px) {
        br {
          display: none;
        }
      }

      @media screen and (min-width: 1000px) {
        line-height: 2.3;
      }
    }
  }

  .content {
    @media screen and (max-width: 999px) {
      grid-gap: 32px;
      max-width: 100%;
    }

    h3 {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      max-width: 100%;
      height: 87px;
      margin-bottom: 13px;
      padding: 3px 0 15px;
      background-repeat: no-repeat;
      background-size: contain;
      font-size: 21px;
      font-weight: 500;

      @media screen and (min-width: 1000px) {
        height: 97px;
        font-size: 23px;
      }
    }

    div {
      @media screen and (max-width: 999px) {
        + div {
          margin-top: 40px;
        }
      }

      &:nth-child(1) h3 {
        aspect-ratio: 3.47 / 1;
        background-image: url(../../img/bg/headline_fr-1.svg);
      }

      &:nth-child(2) h3 {
        aspect-ratio: 3.01 / 1;
        background-image: url(../../img/bg/headline_fr-2.svg);
      }
    }

    p {
      display: inline-flex;
      align-items: center;
      text-align: justify;
      font-size: 14px;
      line-height: 1.89;
    }
  }
}

#points {
  position: relative;
  padding: 50px 0;
  background-image: url(../../img/bg/point.png);
  background-repeat: repeat;
  color: var(--color-neutral-0);

  @media screen and (min-width: 1000px) {
    padding: 135px 0;

    .is-fluid {
      padding-right: 0;
      padding-left: 0;
    }

    .inner {
      max-width: 100%;
      width: 1000px;
      margin: auto;
    }
  }

  hgroup {
    h2 {
      position: relative;
      margin-bottom: 14px;
      text-align: start;
      font-size: 22px;
      line-height: 1.66;

      @media screen and (min-width: 768px) {
        font-size: 38px;
      }
    }

    p {
      position: relative;
      max-width: 25.5em;
      text-align: justify;
      letter-spacing: -0.04em;
      line-height: 1.9;

      @media screen and (min-width: 1000px) {
        font-size: 18px;
      }
    }
  }

  @media screen and (max-width: 767px) {
    .pc_only {
      display: none;
    }
  }

  @media screen and (min-width: 768px) {
    .mobile_only {
      display: none;
    }
  }
}

#points .point {
  --photo-size: 248px;
  --circle-small: 60px;
  --circle-large: 120px;

  position: relative;

  @media screen and (max-width: 767px) {
    margin-top: 40px;
  }

  h3 {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: var(--circle-small);
    aspect-ratio: 1/1;
    text-align: center;
    color: var(--color-neutral-900);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.19;
    z-index: 10;

    @media screen and (min-width: 768px) {
      width: var(--circle-large);
    }

    &::after {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      width: var(--circle-small);
      aspect-ratio: 1/1;
      background: var(--color-neutral-0);
      border-radius: 50%;
      border: 2px solid var(--color-brand);
      z-index: -1;

      @media screen and (min-width: 768px) {
        width: var(--circle-large);
        border: 4px solid var(--color-brand);
      }
    }
  }

  h4 {
    position: relative;
    display: inline-block;
    font-size: 0;

    @media screen and (max-width: 767px) {
      margin: 30px 0 22px;
    }

    @media screen and (min-width: 768px) and (max-width: 999px) {
      margin: 40px 0;
    }

    span {
      display: flex;
      align-items: center;
      width: -webkit-fit-content;
      width: -moz-fit-content;
      width: fit-content;
      height: 26px;
      padding: 0 0.3em;
      background: #ee4b12;
      text-box-trim: trim-both;
      font-size: 19px;
      font-weight: 700;

      @media screen and (min-width: 768px) {
        height: 35px;
        font-size: 27px;
      }

      + span {
        margin-top: 0.35em;
      }
    }
  }

  p {
    position: relative;
    max-width: 100%;
    width: 30em;
    text-align: justify;
    text-box-trim: trim-both;
    font-size: 14px;
    line-height: 1.95;

    @media screen and (max-width: 767px) {
      margin-top: -0.475em;
    }

    @media screen and (min-width: 768px) {
      font-size: 15px;
    }
  }

  img {
    position: relative;

    @media screen and (max-width: 999px) {
      width: max(var(--photo-size), 66vw);
      height: auto;
    }
  }
}

#points .point.natural-komb {
  @media screen and (min-width: 1000px) {
    margin-top: -183px;
  }

  h3 {
    position: absolute;

    @media screen and (min-width: 768px) {
      right: 0;
      font-size: 22px;
    }
  }

  img {
    display: block;
    top: 45px;

    @media screen and (max-width: 767px) {
      margin-bottom: 45px;
    }

    @media screen and (min-width: 768px) {
      top: 90px;
      margin-left: auto;

      @media screen and (orientation: portrait) {
        margin-bottom: 90px;
      }
    }
  }

  h4 {
    @media screen and (min-width: 1000px) {
      position: absolute;
      left: 0;
      top: 347px;
    }

    @media screen and (max-width: 767px) {
      span {
        font-size: min(4.3vw, 20px);
      }
    }
  }
}

#points .point.aging {
  @media screen and (min-width: 768px) {
    margin-top: 135px;
  }

  @media screen and (min-width: 1000px) {
    height: 545px;
  }

  h3 {
    @media screen and (max-width: 999px) {
      position: absolute;
      top: 0;
      right: calc(max(var(--photo-size), 66vw) - var(--circle-small));
    }

    @media screen and (min-width: 768px) {
      font-size: 24px;
    }
  }

  img {
    @media screen and (max-width: 999px) {
      position: relative;
      top: 30px;
      display: block;
      margin-bottom: 30px;
      margin-left: auto;
    }

    @media screen and (min-width: 1000px) {
      position: absolute;
      top: 50px;
      right: 0;
      height: auto;
    }
  }

  @media screen and (min-width: 1000px) {
    h4 {
      position: absolute;
      top: 147px;
      left: 87px;
    }
  }

  p {
    left: 0;

    @media screen and (min-width: 1000px) {
      position: absolute;
      bottom: 0;
    }
  }
}

#points .point.ingredients {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;

  @media screen and (min-width: 768px) {
    margin-top: 135px;
  }

  @media screen and (max-width: 1046px) {
    flex-direction: column;
  }

  > div {
    max-width: 100vw;
  }

  h3 {
    font-size: 10px;
    line-height: 1.13;

    @media screen and (max-width: 767px) {
      position: absolute;
      top: calc(max(var(--photo-size), 66vw) * 0.66);
      left: 0;
      transform: translateY(-50%);
    }

    @media screen and (min-width: 768px) {
      width: 90px;
      height: 90px;
      padding-bottom: 3px;
      font-size: 16px;
      letter-spacing: -0.025em;

      &::after {
        width: 90px;
        height: 90px;
      }
    }
  }

  .side-by-side {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin: 2em 0;

    @media screen and (max-width: 999px) {
      justify-content: center;
    }
  }

  h4 {
    margin: 10px auto 0 0;

    @media screen and (min-width: 768px) {
      margin: 0 0 0 16px;
    }

    span {
      padding: 0.35em 0.3em;
      font-size: min(calc((178px / 1000) * 100), 28px);
      white-space: nowrap;
    }
  }

  p {
    @media screen and (max-width: 999px) {
      width: 100%;
    }
  }
}

@-webkit-keyframes stroke {
  0% {
    stroke-dashoffset: 886px;
    stroke-dasharray: 886px;
  }

  100% {
    stroke-dashoffset: 0;
    stroke-dasharray: 886px;
  }
}

@keyframes stroke {
  0% {
    stroke-dashoffset: 886px;
    stroke-dasharray: 886px;
  }

  100% {
    stroke-dashoffset: 0;
    stroke-dasharray: 886px;
  }
}

#svg_square {
  display: block;
  margin: 0 auto;
  -webkit-animation: stroke 3s cubic-bezier(0.47, 0, 0.745, 0.715) 0s both
    paused;
  animation: stroke 3s cubic-bezier(0.47, 0, 0.745, 0.715) 0s both paused;
}

#products_header {
  position: relative;

  @media screen and (max-width: 999px) {
    svg {
      width: 180px;
      height: 180px;
    }
  }
}

#products {
  display: flex;
  justify-content: center;
  flex-direction: column;
  background: #f3f1ec;

  @media screen and (min-width: 1080px) {
    padding: 135px 0;
  }

  a {
    position: relative;
    font-size: 0;
  }

  h2 {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 180px;
    margin: 0 auto;

    @media screen and (min-width: 1000px) {
      width: 222px;
      height: 222px;
      font-size: 28px;
    }
  }

  h3 {
    display: block;
    padding-left: 1em;
    text-indent: -1em;
    color: var(--color-neutral-800);
    font-size: 19px;

    @media screen and (max-width: 1079px) {
      margin-bottom: 7px;
      text-box-trim: none;
    }

    span {
      display: inline-block;

      &:first-child::before {
        content: "■";
        color: var(--color-brand);
      }
    }
  }

  h4 {
    color: var(--color-neutral-800);
  }

  hgroup p {
    margin: 40px auto;
    text-align: justify;
    text-box-trim: trim-both;

    @media screen and (min-width: 1080px) {
      margin: 24px auto;
      text-align: center;
      font-size: 18px;
    }
  }

  .button {
    max-width: 804px;
    height: 3.95em;
    margin: auto;
    background: #203e1d;
    font-family: var(--font-mincho);
    font-size: max(13px, 4.06vw);
    font-weight: bold;

    @media screen and (min-width: 530px) {
      height: 126px;
      font-size: 32px;
    }

    img {
      width: 1.8em;
      margin-right: 0.7em;
    }
  }

  .description {
    text-align: justify;
  }
}

#products .hot-items {
  display: flex;
  flex-direction: column;
  grid-gap: 54px;
  max-width: 100%;
  width: 1080px;
  margin: 0 auto 54px;

  @media screen and (max-width: 1079px) {
    width: 700px;
  }

  @media screen and (min-width: 1080px) {
    margin: 90px auto;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  > div {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    grid-gap: 50px;

    @media screen and (max-width: 768px) {
      grid-gap: 0;
      justify-content: center;
      max-width: 100vw;
      width: 700px;
    }
  }

  h3 {
    @media screen and (min-width: 1080px) {
      position: absolute;
      top: -1.07em;
      left: 0.5rem;
      height: 36px;
      padding: 0;
      text-indent: 0;
      font-size: 23px;
    }

    @media screen and (max-width: 1079px) {
      span {
        padding-right: 0.3em;

        &:first-child {
          padding-left: 1.3em;
        }

        &:not(:first-child) {
          margin-top: 0.3em;
          padding-left: 1.5em;
        }
      }
    }
  }

  span {
    display: inline-block;
    height: 30px;
    background: #fff;

    @media screen and (min-width: 1080px) {
      height: 36px;
      padding: 0 0.3em;
    }
  }

  @media screen and (min-width: 1080px) {
    br {
      display: none;
    }
  }

  h4 {
    margin-bottom: 21px;
    text-align: left;
    font-size: 19px;
    letter-spacing: -0.006em;
    line-height: 1.57;

    @media screen and (max-width: 999px) {
      margin: 24px auto 32px;
      width: -webkit-fit-content;
      width: -moz-fit-content;
      width: fit-content;
    }
  }

  @media screen and (min-width: 1080px) {
    .description {
      width: 330px;
    }
  }

  @media screen and (max-width: 1079px) {
    p {
      text-box-trim: trim-both;
      font-size: 15px;
      line-height: 1.7;
    }
  }
}

#products .items {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: auto;
  grid-gap: 70px;
  justify-items: center;
  max-width: 100%;
  width: 1080px;
  margin: 0 auto 40px;

  @media screen and (max-width: 320px) {
    grid-template-columns: 1fr;

    > div h3 {
      left: 0;
    }
  }

  @media screen and (max-width: 1079px) {
    grid-gap: 43px;

    @media screen and (min-width: 800px) {
      grid-template-columns: repeat(2, 1fr);
      grid-gap: 50px;
      width: 800px;
    }

    > div {
      max-width: 375px;
      width: 100%;
    }
  }

  @media screen and (min-width: 1080px) {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 80px;
  }

  img {
    display: block;
    max-width: 60vw;
    height: auto;

    @media screen and (max-width: 1079px) {
      margin-inline: auto;
    }

    @media screen and (min-width: 1080px) {
      margin-left: auto;
    }
  }

  h3 {
    @media screen and (min-width: 1080px) {
      position: absolute;
      top: 0;
      left: 0;
    }

    span {
      height: 30px;
      padding-right: 0.3em;
      background: #fff;
      white-space: nowrap;

      &:first-child {
        padding-left: 1.3em;
      }

      &:not(:first-child) {
        margin-top: 0.3em;
        padding-left: 1.5em;
      }
    }
  }

  h4 {
    margin: 24px auto;
    font-size: 19px;
    font-weight: 500;
    color: var(--color-neutral-800);
    line-height: 1.48;

    @media screen and (min-width: 1080px) {
      position: absolute;
      top: 0;
      left: 0;
      margin: 0;
      transform: translateY(-100%);
    }
  }

  .description {
    position: relative;

    p {
      text-box-trim: trim-both;
      font-size: 15px;
      line-height: 1.7;

      @media screen and (min-width: 1079px) {
        padding-top: 24px;
      }
    }
  }
}

#message {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(../../img/bg/message.png);
  background-size: cover;

  @media screen and (max-width: 1079px) {
    padding-right: 5%;
    padding-left: 5%;
    font-size: 15px;
  }

  @media screen and (min-width: 1080px) {
    padding: 100px 0;
  }

  h2 {
    margin-bottom: 32px;

    br {
      display: none;

      @media screen and (max-width: 767px) {
        display: initial;
      }
    }
  }

  hgroup {
    text-align: center;

    p {
      margin: 20px 0 24px;

      @media screen and (min-width: 1080px) {
        margin: 24px 0 40px;
      }
    }
  }
}

#message_container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 50px 0;
  text-align: justify;
  text-box-trim: trim-both;
  border-top: 3px solid #203d1d;
  border-bottom: 3px solid #203d1d;

  @media screen and (max-width: 1079px) {
    padding-top: 24px;
    padding-bottom: 0;
    border-top: 2px solid #203d1d;
    border-bottom: none;

    p {
      margin-bottom: 1em;
    }
  }

  @media screen and (min-width: 1080px) {
    width: 1080px;
    padding-right: 40px;
    padding-left: 40px;
    font-size: 17px;
    line-height: 2.24;
    vertical-align: baseline;
  }
}

#future {
  @media screen and (min-width: 1000px) {
    padding: 130px 0;
  }

  h2 {
    margin: 0;

    + img {
      display: block;
      margin: 24px auto;
    }
  }

  hgroup p {
    text-align: justify;
    text-box-trim: trim-both;
    letter-spacing: -0.005em;
    line-height: 1.9;

    @media screen and (min-width: 1000px) {
      text-align: center;
      font-size: 18px;
    }
  }

  h3 {
    margin: 21px 0 13px;
    font-size: 22px;

    @media screen and (min-width: 1000px) {
      font-size: 26px;
    }
  }

  .content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
    grid-gap: 45px;
    margin-top: 36px;

    @media screen and (min-width: 1000px) {
      grid-gap: 90px;
      margin-top: 95px;
    }

    > div {
      max-width: 100%;
      width: 358px;
      text-align: left;

      p {
        margin: 0;
        text-align: justify;
        font-size: 14px;
        line-height: 1.7;
      }
    }

    img {
      display: block;
      height: auto;
    }
  }
}

#shops {
  background: #e4e1d6;

  @media screen and (min-width: 1000px) {
    padding: 100px 0 135px;
  }

  h2 {
    margin-bottom: 2em;
    line-height: 1;

    &::before {
      content: url(../../img/store.svg);
      display: block;
      height: 30px;
      margin-bottom: 0.68em;
      text-align: center;

      @media screen and (min-width: 1000px) {
        margin-bottom: 21px;
      }
    }
  }

  h3 {
    margin: 1em 0 0.4em;
    font-size: 21px;
    color: var(--color-neutral-800);

    @media screen and (min-width: 1000px) {
      font-size: 26px;
    }
  }

  h4 {
    margin-bottom: 1em;
    text-align: center;
    text-box-trim: trim-start;
    font-size: 17px;
    color: var(--color-neutral-800);

    span {
      display: inline-block;
      white-space: nowrap;
    }
  }

  .information {
    text-align: left;

    img {
      display: block;
      height: auto;
    }

    p {
      height: 9em;
      margin: 18px 0 24px;
      text-box-trim: trim-both;
      font-size: 15px;
      line-height: 1.57;

      @media screen and (orientation: portrait) {
        height: auto;
      }
    }

    address {
      display: flex;
      align-items: center;
      height: 30px;
      padding: 0 11px;
      background: var(--color-neutral-900);

      a {
        font-size: 21px;
        color: var(--color-neutral-0);
      }
    }
  }

  .shop {
    max-width: 100%;
    width: 358px;
  }

  .content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
    grid-gap: 90px;
    margin: 0 auto;

    @media screen and (max-width: 358px) {
      padding: 0 5%;
    }
  }

  .map-container {
    aspect-ratio: 1/1;
    overflow: auto;
  }

  @media screen and (min-width: 768px) {
    br.mobile_only {
      display: none;
    }
  }
}

#shops .card {
  position: relative;
  margin-top: 111px;
  z-index: 0;

  .card-inner {
    position: relative;
    margin: auto;
    padding: 107px 24px 24px;
    background: white;
    text-align: justify;
    border: 2px solid var(--color-brand);

    &::before {
      content: "";
      display: block;
      height: 170px;
      width: 170px;
      background: var(--color-brand);
      border-radius: 50%;
      position: absolute;
      top: calc(-170px / 2);
      right: 0;
      left: 0;
      margin: 0 auto;
      z-index: -1;
    }
  }

  p {
    margin: 0;
    font-size: 15px;
  }

  img {
    position: absolute;
    top: -83px;
    right: 0;
    left: 0;
    margin: 0 auto;
  }

  span.square::before,
  span.square::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--color-brand);
  }

  span.square.top::before,
  span.square.top::after {
    top: 0;
  }

  span.square.bottom::before,
  span.square.bottom::after {
    bottom: 0;
  }

  span.square::before {
    right: 0;
  }

  span.square::after {
    left: 0;
  }
}

#sns {
  @media screen and (min-width: 1000px) {
    padding: 95px 0;
  }

  h2 {
    margin-bottom: 45px;

    @media screen and (min-width: 1000px) {
      margin-bottom: 90px;
    }
  }
}

#sns_inner {
  display: grid;
  grid-template-columns: 330px 1fr;
  grid-template-rows: 1fr;
  grid-gap: 50px;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  padding: 0 54px;
  border-right: 3px solid var(--color-brand);
  border-left: 3px solid var(--color-brand);

  @media screen and (max-width: 999px) {
    padding-right: 5%;
    padding-left: 5%;
  }

  @media screen and (max-width: 562px) {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

#fb {
  width: 100%;
  text-align: center;
}

#sns-list {
  a {
    display: block;
  }

  hgroup {
    display: block;
    margin: 0 0 70px calc(50px + 19px);
  }

  h3 {
    position: relative;
    text-box-trim: trim-start;
    font-size: 17px;
    font-weight: bold;
  }

  p {
    line-height: 1.5;
    font-size: 15px;

    > span {
      position: relative;
      display: block;
      font-size: 17px;
      font-weight: bold;
      color: var(--color-brand);
    }
  }

  .sns-icon {
    float: left;
  }
}

@media screen and (max-width: 999px) {
  #sns {
    padding-bottom: 0;
  }
}

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #d9ded8;

  @media screen and (max-width: 799px) {
    padding-right: 5%;
    padding-left: 5%;
  }

  @media screen and (min-width: 800px) {
    padding: 100px 0;
  }

  h2 {
    margin-bottom: 52px;
  }

  form {
    max-width: 100%;
    width: 800px;
    font-size: 17px;

    @media screen and (min-width: 800px) {
      width: 800px;
    }

    table {
      width: 100%;
      margin-bottom: 2em;
    }
  }

  th {
    width: 323px;
    margin-bottom: 14px;
    text-align: left;
    text-box-trim: trim-both;
    vertical-align: top;
  }

  td {
    width: 477px;
  }

  label {
    font-weight: 700;
  }

  @media screen and (max-width: 799px) {
    th,
    td {
      display: block;
      width: 100%;
    }

    tr + tr > th {
      margin-top: 27px;
    }
  }

  @media screen and (min-width: 800px) {
    tr + tr {
      > th,
      > td {
        padding-top: 27px;
      }
    }
  }

  td:not([colspan="2"]) input,
  td:not([colspan="2"]) textarea {
    width: 100%;
    padding: 0.5em;
    background: var(--color-neutral-0);
    border: 1px solid var(--color-neutral-900);
    border-radius: 0;
  }

  td[colspan="2"] textarea {
    width: 100%;
    border: 1px solid var(--color-neutral-900);
  }

  input,
  label {
    vertical-align: middle;
  }

  input[type="checkbox"] {
    all: revert;
    border-radius: 0;
  }

  textarea#form_text {
    height: 110px;
  }

  input[type="submit"] {
    display: block;
    width: 180px;
    height: 60px;
    margin-inline: auto;
    background: #39854a;
    text-align: center;
    font-family: sans-serif;
    font-size: 20px;
    color: var(--color-neutral-0);
  }
}

#page-top {
  opacity: 0;
  pointer-events: none;
}
