/** @format */

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #111;
  background: #f5f3ed;
  font-family: "Noto Sans JP", sans-serif;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
}

.comments-page {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 5% 28%,
      rgba(247, 190, 199, 0.72),
      transparent 38%
    ),
    radial-gradient(
      circle at 94% 16%,
      rgba(142, 205, 232, 0.76),
      transparent 40%
    ),
    linear-gradient(180deg, #f7efec, #d9eff7);
}

.comments-header {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 68px;
  padding: 0 22px;
  background: rgba(158, 215, 237, 0.94);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.comments-header.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.comments-brand {
  display: block;
  width: 267px;
  max-width: 42%;
}
.comments-brand img {
  width: 100%;
}
.menu-toggle {
  display: grid;
  grid-template-columns: repeat(2, 18px);
  gap: 6px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  width: 18px;
  height: 18px;
  background: #fff;
}

.comments-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: start center;
  padding: 28px 30px 42px;
}
.comments-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 300px;
  background: rgba(255, 250, 248, 0.9);
  clip-path: polygon(12% 0, 88% 0, 50% 100%);
}
.comments-hero__copy {
  position: relative;
  z-index: 2;
  width: min(362px, 48%);
  margin: 0;
}
.comments-hero__copy img {
  width: 100%;
}
.comments-hero__deco {
  position: absolute;
  z-index: 2;
  width: 120px;
}
.comments-hero__deco--left {
  top: 52px;
  left: 12%;
}
.comments-hero__deco--right {
  top: 44px;
  right: 14%;
  width: 100px;
}

.region-nav {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 34px;
  width: min(790px, calc(100% - 48px));
  margin: -18px auto 88px;
}
.region-nav a {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 10px;
  color: #fff;
  background: #050505;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.05rem;
  text-align: center;
  transition:
    transform 0.2s,
    background 0.2s;
}
.region-nav a:hover {
  transform: translateY(-3px);
}
.region-nav a[aria-current="page"] {
  color: #111;
  background: #fff300;
}

.comments-list {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 100px;
}
.comments-list__title {
  margin: 0 0 30px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 900;
  text-align: center;
}
.comment-card {
  margin-bottom: 62px;
  padding: 30px 38px 26px;
  border-radius: 30px 0 30px 30px;
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(247, 190, 199, 0.5) 0,
      rgba(247, 190, 199, 0.2) 18%,
      rgba(255, 255, 255, 0) 43%
    ),
    rgba(255, 255, 255, 0.96);
}
.comment-card:nth-of-type(even) {
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(142, 205, 232, 0.52) 0,
      rgba(142, 205, 232, 0.2) 18%,
      rgba(255, 255, 255, 0) 43%
    ),
    rgba(255, 255, 255, 0.96);
}
.comment-card__body {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 2;
}
.comment-card__credit {
  margin: 22px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.region-nav--footer {
  margin: 12px auto 70px;
}
.comments-footer {
  padding: 0 24px 24px;
  text-align: center;
}
.comments-footer p {
  margin-block: 0;
}
.comments-footer__logo {
  width: min(620px, 70%);
  margin-inline: auto !important;
}
.comments-footer__publisher {
  width: min(180px, 20%);
  margin: 44px auto 0 !important;
}
.comments-footer__copyright {
  margin: 52px auto 0 !important;
  font-size: 12px;
  line-height: 1.7;
}

.global-menu {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 80px 24px 40px;
  color: #fff;
  background: rgba(55, 175, 207, 0.92);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s,
    visibility 0.25s;
}
.global-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.global-menu__list {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.global-menu__list a {
  font-family: "Dela Gothic One", "Noto Sans JP", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  font-weight: 400;
}
.global-menu__close {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  margin: 32px auto 0;
  border: 0;
  background: transparent;
  font-family: "Dela Gothic One", "Noto Sans JP", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  cursor: pointer;
}
.global-menu__close span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 7px;
}
body.menu-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .comments-header {
    height: 58px;
    padding-inline: 14px;
  }
  .comments-brand {
    width: 220px;
    max-width: 58%;
  }
  .menu-toggle {
    grid-template-columns: repeat(2, 13px);
    gap: 4px;
    padding: 8px;
  }
  .menu-toggle span {
    width: 13px;
    height: 13px;
  }
  .comments-hero {
    min-height: 285px;
    padding-top: 32px;
  }
  .comments-hero::before {
    height: 285px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
  .comments-hero__copy {
    width: min(290px, 72%);
  }
  .comments-hero__deco {
    width: 82px;
  }
  .comments-hero__deco--left {
    top: 132px;
    left: 4%;
  }
  .comments-hero__deco--right {
    top: 126px;
    right: 5%;
    width: 70px;
  }
  .region-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: calc(100% - 32px);
    margin: -4px auto 58px;
  }
  .region-nav a {
    min-height: 54px;
    font-size: 0.86rem;
  }
  .comments-list {
    width: calc(100% - 32px);
    padding-bottom: 70px;
  }
  .comment-card {
    margin-bottom: 34px;
    padding: 24px 22px 22px;
    border-radius: 24px 0 24px 24px;
  }
  .comment-card__body {
    font-size: 0.94rem;
    line-height: 1.9;
  }
  .comment-card__credit {
    font-size: 0.76rem;
  }
  .region-nav--footer {
    margin: 4px auto 52px;
  }
  .comments-footer {
    padding-inline: 16px;
  }
  .comments-footer__logo {
    width: min(100%, 560px);
  }
  .comments-footer__publisher {
    width: min(120px, 28%);
    margin-top: 34px !important;
  }
  .comments-footer__copyright {
    margin-top: 38px !important;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
