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

:where(#message, #future, #shops) .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;
    }
  }
}

.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;
  }
}

#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: 32px 5% 54px;
  background: var(--color-neutral-0);

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

  & > * {
    display: flex;
    flex-wrap: wrap;

    @media screen and (min-width: 1000px) {
      flex-direction: row;
      justify-content: space-between;
      max-width: 100%;
      width: 1000px;
      margin: 0 auto;
    }
  }

  hgroup {
    h2 {
      margin: 0;
      font-size: min(7vw, 28px);

      @media screen and (max-width: 999px) {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 30px;
      }

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

    p {
      margin: 0;
      text-box-trim: trim-both;
      line-height: 2.3;

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

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

    & > div {
      display: flex;
      align-items: center;
      grid-gap: 38px;

      @media screen and (max-width: 999px) {
        align-items: flex-start;
      }
    }

    h3 {
      position: relative;
      display: inline-flex;
      align-items: center;
      width: 80px;
      height: 200px;
      padding-top: 30px;
      -webkit-writing-mode: vertical-rl;
      writing-mode: vertical-rl;
      -ms-writing-mode: tb-rl;
      text-align: start;
      font-size: 23px;
      line-height: 1.3;
      word-break: keep-all;

      &::after {
        content: "";
        background-image: url(../../img/bg/headline.svg);
        background-size: contain;
        background-repeat: no-repeat;
        width: 95px;
        height: 203px;
        position: absolute;
        top: 0;
        right: -10px;
        margin: 0 auto;
        left: 0;
        pointer-events: none;
      }
    }

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

      @media screen and (max-width: 999px) {
        padding-top: 27px;
      }

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

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

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

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

  hgroup {
    position: relative;
    width: 100%;
    margin-bottom: -10rem;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    text-align: start;
    white-space: nowrap;

    @media screen and (max-width: 999px) {
      display: flex;
      flex-direction: column;
      justify-content: center;
      margin-inline: auto;
    }

    h2 {
      position: relative;
      margin-left: 0.63em;
      text-align: start;
      font-size: 32px;
      line-height: 1.5;

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

    p {
      position: relative;

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

#points .point {
  --circle-small: 100px;
  --circle-large: 120px;

  position: relative;

  @media screen and (max-width: 999px) {
    + .point {
      margin-top: 50px;
    }
  }

  h3 {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: var(--circle-small);
    aspect-ratio: 1/1;
    padding-bottom: 0.27em;
    text-align: center;
    color: var(--color-neutral-900);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    z-index: 10;

    @media screen and (min-width: 1000px) {
      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: 4px solid var(--color-brand);
      z-index: -1;

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

  h4 {
    position: relative;
    display: inline-block;
    font-size: min(5.5vw, 28px);
    font-weight: 500;

    > span {
      display: flex;
      align-items: center;
      width: -webkit-fit-content;
      width: -moz-fit-content;
      width: fit-content;
      height: 42px;
      padding: 0 15px;
      background: #ee4b12;
      text-box-trim: trim-both;

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

    @media screen and (max-width: 999px) {
      margin: 1.5em 0 1.25em;
    }
  }

  p {
    position: relative;
    max-width: 100%;
    width: 23em;
    text-align: justify;
    font-size: 15px;
    text-box-trim: trim-both;
  }

  img {
    position: relative;
    display: block;

    @media screen and (max-width: 999px) {
      max-width: 70vw;
      height: auto;
    }
  }
}

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

  h3 {
    position: absolute;
    font-size: 24px;

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

  h4 {
    right: 20px;
    width: 100%;

    span {
      -webkit-margin-start: auto;
      margin-inline-start: auto;
    }
  }

  img {
    top: 90px;

    @media screen and (max-width: 999px) {
      top: 70px;
      margin-bottom: 70px;
    }
  }

  p {
    margin-left: auto;

    @media screen and (min-width: 1000px) {
      top: 54px;
    }
  }
}

#points .point.aging {
  --photo-size: 495px;

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

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

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

  img {
    @media screen and (max-width: 999px) {
      top: calc(var(--circle-small) / 2 + 9px);
      display: block;
      margin-left: auto;
      padding-bottom: calc(var(--circle-small) / 2 + 9px);
    }

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

  p {
    left: 0;

    @media screen and (min-width: 1000px) {
      top: 54px;
    }
  }

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

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

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

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

  > div {
    max-width: 100vw;
  }

  h3 {
    width: 90px;
    height: 90px;
    padding-bottom: 3px;
    font-size: 21px;

    @media screen and (max-width: 353px) {
      position: absolute;
      top: calc(70vw * 0.66);
      left: 0;
      transform: translateY(-100%);
    }

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

  img {
    @media screen and (max-width: 353px) {
      margin-top: 60px;
    }
  }

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

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

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

  h4 {
    font-size: min(5.5vw, 20px);

    @media screen and (min-width: 354px) {
      margin-left: 1rem;
    }

    > span {
      height: 32px;
      padding: 0 6px;
      font-size: 20px;
      white-space: nowrap;
    }
  }

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

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

@-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: 1000px) {
    padding: 135px 0;
  }

  a {
    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 {
    position: absolute;
    display: flex;
    align-items: center;
    padding: 0.3em 0;
    background: var(--color-neutral-0);
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    text-align: start;
    font-weight: normal;
    color: var(--color-neutral-800);
    word-break: keep-all;

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

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

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

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

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

  .button {
    max-width: 90%;
    height: 60px;
    margin: auto;
    background: #203e1d;
    font-family: "Shippori Mincho", "Yu Mincho Light", "YuMincho", "Yu Mincho",
      "游明朝体", serif;
    font-size: 20px;
    font-weight: bold;

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

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

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

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

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

  > div {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;

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

  h3 {
    top: -0.78em;
    left: 0.65em;
    width: 1.55em;
    font-size: 19px;

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

  h4 {
    margin-bottom: 21px;
    text-align: center;
    font-size: 20px;
    line-height: 1.57;

    @media screen and (max-width: 999px) {
      margin: 24px 0 32px;
    }
  }

  .description {
    text-align: justify;

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

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

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

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

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

    > div h3 {
      left: 0;
    }
  }

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

  @media screen and (min-width: 1095px) {
    grid-template-columns: repeat(4, 1fr);
  }

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

  > div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 230px;

    h3 {
      top: -0.75em;
      left: -0.75em;
      width: 1.5em;
      font-size: 19px;

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

  .description {
    h4 {
      margin: 24px 0;
      text-align: center;
      font-size: 20px;
      line-height: 1.57;
    }

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

  @media screen and (min-width: 1024px) {
    > *:nth-child(1) {
      -ms-grid-column: 1;
      -ms-grid-row: 1;
    }

    > *:nth-child(2) {
      -ms-grid-column: 2;
      -ms-grid-row: 1;
    }

    > *:nth-child(3) {
      -ms-grid-column: 3;
      -ms-grid-row: 1;
    }

    > *:nth-child(4) {
      -ms-grid-column: 4;
      -ms-grid-row: 1;
    }
  }
}

#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: 135px 0;
  }

  h2 {
    margin-bottom: 32px;
  }

  hgroup {
    text-align: center;

    p {
      margin: 20px 0 24px;

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

#message_container {
  position: relative;
  margin: 0 auto;
  padding: 50px 0;
  text-align: justify;
  text-indent: 1em;
  border-top: 3px solid #203d1d;
  border-bottom: 3px solid #203d1d;

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

    p {
      margin-bottom: 1em;
    }
  }

  @media screen and (min-width: 1080px) {
    height: 41em;
    -webkit-writing-mode: vertical-rl;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    text-align: start;
    font-size: 17px;
    line-height: 2.24;
    vertical-align: baseline;

    .text-combine {
      font-family: "Yu Mincho Light", "YuMincho", "Yu Mincho", "游明朝体", serif;
      -webkit-text-combine: horizontal;
      -ms-text-combine-horizontal: all;
      text-combine-upright: all;
      text-indent: 0;
      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-box-trim: trim-both;
    line-height: 1.9;

    @media screen and (min-width: 768px) {
      text-align: center;
    }

    @media screen and (min-width: 1000px) {
      padding-right: 5%;
      padding-left: 5%;
      font-size: 18px;
    }
  }

  h3 {
    margin: 21px 0 13px;
    font-size: 22px;
    color: var(--color-neutral-800);

    @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 (max-width: 358px) {
      padding: 0 5%;
    }

    @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;
      text-box-trim: trim-both;
    }
  }

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

  .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) and (max-width: 428px),
        screen and (orientation: landscape) and (max-height: 429px) {
        height: auto;
      }
    }

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

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

  .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;
  }
}

#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;
    }
  }

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

  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: 358px;
    font-size: 17px;

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

    table {
      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;
    }

    .privacy-policy {
      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);
  }

  .privacy-policy {
    background: var(--color-neutral-0);
    border: 1px solid var(--color-neutral-900);

    > .inner {
      height: 145px;
      padding: 0 1em;
      background: var(--color-neutral-0);
      overflow-y: scroll;
    }

    ul {
      list-style: disc;
      margin-bottom: 1rem;
      padding-left: 2rem;
    }

    p {
      margin: 1em 0;
      text-box-trim: trim-both;
    }

    label {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      height: 38px;
      border-top: 1px dashed var(--color-neutral-900);
      text-align: center;
      font-weight: normal;
    }

    input[type="checkbox"] {
      margin-right: 1em;
    }
  }
}

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