/* base */
:root {
  --color-black: #181818;
  --color-red: #db0000;
  --color-blue: #0063c2;
  --color-white: #ffffff;
  --font-family-ja:
    "LINE Seed JP", YakuHanJP, -apple-system, BlinkMacSystemFont, YuGothic,
    "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-family-en:
    "Inter", YakuHanJP, Lato, -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", sans-serif;
  --filter-black: invert(0%) sepia(5%) saturate(3952%) hue-rotate(145deg)
    brightness(129%) contrast(81%);
  --filter-red: invert(24%) sepia(100%) saturate(5037%) hue-rotate(356deg)
    brightness(76%) contrast(138%);
}

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

html {
  font-size: 62.5%;
}
@media only screen and (max-width: 1919px) {
  html {
    font-size: calc(10vw / 19.2);
  }
}
@media only screen and (max-width: 767px) {
  html {
    font-size: calc(10vw / 3.9);
  }
}

body {
  font-family: var(--font-family-ja);
  line-height: 1.75;
  color: var(--color-black);
  font-feature-settings: "palt";
  background: #f1f1f1;
  cursor:
    url("../img/cursor.png") 0 0,
    auto;
}
img {
  max-width: 100%;
  height: auto;
}
ul,
li {
  list-style: none;
}
a {
  text-decoration: none;
}
@media (any-hover: hover) {
  *:hover {
    cursor:
      url("../img/cursor.png") 0 0,
      auto;
  }
}
::selection {
  color: var(--color-white);
  background: var(--color-black);
}

/* layout */
.content {
  position: relative;
  display: flex;
}
.content::before {
  position: absolute;
  content: "";
  background: url(../img/bg-noise.jpg) repeat-y center / 100%;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
  z-index: -1;
}
.l-content {
  width: 50%;
}
.l-content_side {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #e5e5e5;
  height: 100vh;
}
.l-content_side::before {
  position: absolute;
  content: "";
  background: url(../img/bg-noise.jpg) repeat-y center / 100%;
  width: 100%;
  height: 100%;
  mix-blend-mode: overlay;
  z-index: -1;
}
.side-header {
  padding: 8rem 0;
  background-image:
    linear-gradient(#cdcdcd 1px, transparent 1px),
    linear-gradient(90deg, #cdcdcd 1px, transparent 1px);
  background-size: 3.2rem 3.2rem;
  background-color: transparent;
}
.header-logo {
  width: 76.8rem;
  margin: 0 auto;
}
.l-content_main {
  position: relative;
  padding: 0 8rem 15rem;
  margin-left: 50%;
  background: url(../img/bg-desigwin.png) no-repeat;
  background-size: 27.5rem;
  background-position: right 6rem bottom;
}
.l-content_main::before,
.l-content_main::after {
  position: absolute;
  content: "";
  background: url(../img/bg-trim.png) no-repeat center / cover;
  width: 93rem;
  height: 4.4rem;
  left: 50%;
}
.l-content_main::before {
  top: 10rem;
  transform: translate(-50%, 0);
}
.l-content_main::after {
  bottom: 10rem;
  transform: translate(-50%, 0) scaleY(-1);
}
@media screen and (min-width: 768px) {
  .sp {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .pc {
    display: none;
  }
  .content {
    display: block;
  }
  .l-content {
    width: 100%;
  }
  .l-content_side {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #e5e5e5;
    height: auto;
  }
  .side-header {
    padding: 3rem 0;
    background-image:
      linear-gradient(#cdcdcd 1px, transparent 1px),
      linear-gradient(90deg, #cdcdcd 1px, transparent 1px);
    background-size: 1rem 1rem;
    background-color: transparent;
  }
  .header-logo {
    width: 30.4rem;
  }
  .l-content_main {
    margin-left: 0;
    padding: 0 3rem 7.2rem;
    background-size: 17rem;
    background-position: right 3rem bottom;
  }
  .l-content_main::before,
  .l-content_main::after {
    background: url(../img/bg-trim_sp.png) no-repeat center / cover;
    width: 39rem;
    height: 2.3rem;
  }
  .l-content_main::before {
    top: 2.8rem;
  }
  .l-content_main::after {
    bottom: 2.8rem;
  }
  .header-project-logo,
  .side-nav,
  .side-footer {
    display: none;
  }
}

/* Grid 縦 */
.l-content_grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.l-content_grid__v {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: #cdcdcd;
}
.l-content_grid__v--l1 {
  left: 6rem;
}
.l-content_grid__v--l2 {
  left: 29rem;
}
.l-content_grid__v--l3 {
  left: 35rem;
}
.l-content_grid__v--r1 {
  right: 6rem;
}
.l-content_grid__v--r2 {
  right: 29rem;
}
.l-content_grid__v--r3 {
  right: 35rem;
}
.l-content_main > *:not(.l-content_grid) {
  position: relative;
  z-index: 1;
}
@media screen and (max-width: 767px) {
  .l-content_grid__v--l1 {
    left: 3rem;
  }
  .l-content_grid__v--l2 {
    left: 18rem;
  }
  .l-content_grid__v--l3 {
    display: none;
  }
  .l-content_grid__v--r1 {
    right: 3rem;
  }
  .l-content_grid__v--r2 {
    right: 18rem;
  }
  .l-content_grid__v--r3 {
    display: none;
  }
}

/* Grid 横 */
.p-designGrid__hWrap {
  position: absolute;
  inset: 0;
}
.p-designGrid__hPair {
  position: absolute;
  left: 0;
  width: 100%;
}
.p-designGrid__h {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: #cdcdcd;
}
.p-designGrid__h--top {
  top: 0;
}
.p-designGrid__h--bottom {
  top: 1rem;
}

/* PC side*/
@media screen and (min-width: 768px) {
  .content::after {
    position: absolute;
    content: "";
    background: url(../img/desig-win-project-logo@2x.png) no-repeat center /
      cover;
    width: 10.5rem;
    height: 12.25rem;
    top: 2.4rem;
    right: 7.2rem;
  }
  .header-logo {
    padding: 5.2rem 0;
  }
  .side-content {
    padding: 0 9.6rem;
  }
  .side-nav {
    margin-bottom: 3rem;
  }
  .nav-item {
    font-size: 2.2rem;
    line-height: 1.9;
  }
  .nav-item_link {
    color: var(--color-black);
    font-family: var(--font-family-en);
  }
  .side-footer {
    margin-top: auto;
  }
  .footer-sns {
    margin-bottom: 0.8rem;
  }
  .footer-sns_list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: max(2rem, 15px);
  }
  .footer-sns_item {
    min-width: 29px;
    width: 4rem;
  }
  .footer-copy {
    margin-bottom: 2rem;
  }
  .footer-copy_text {
    font-family: var(--font-family-en);
    font-size: 1.6rem;
    line-height: 1.75;
  }
}
@media (any-hover: hover) {
  .nav-item_link {
    background: linear-gradient(
      90deg,
      var(--color-red) 0%,
      var(--color-red) 50%,
      var(--color-black) 50%,
      var(--color-black) 100%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: background-position 0.3s ease;
  }
  .nav-item_link:hover {
    background-position: 0 0;
  }
  .footer-sns_item a {
    transition: 0.3s;
  }
  .footer-sns_item a:hover {
    opacity: 0.8;
  }
}

/* SP footer*/
@media screen and (max-width: 767px) {
  .footer {
    border-top: 1px solid #c5c5c5;
    text-align: center;
    padding: 2rem 0;
  }
  .footer-project-logo {
    width: 7rem;
    margin: 0 auto 2rem;
  }
  .footer-sns {
    margin-bottom: 2rem;
  }
  .footer-sns_list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: max(1.4rem, 15px);
  }
  .footer-sns_item {
    min-width: 29px;
    width: 3rem;
  }
  .footer-copy_text {
    font-size: 1rem;
    color: #808080;
  }
}

/* 共通 */
.page-title {
  position: relative;
  margin-left: -0.8rem;
}
.page-title_ja {
  position: absolute;
  top: calc(50% - 1.2rem);
  left: 0.5em;
  font-size: 2.4rem;
  font-weight: 700;
}
.page-title_en {
  font-family: var(--font-family-en);
  color: #d8d8d8;
  font-size: 16rem;
  font-weight: bold;
  mix-blend-mode: multiply;
}
.page-top {
  position: fixed;
  right: calc(6rem - 12px);
  bottom: 6rem;
  border: none;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.page-top.is-show {
  opacity: 1;
  visibility: visible;
}
@media (any-hover: hover) {
  .page-top:hover {
    transform: scale(1.2);
  }
}
@media only screen and (max-width: 767px) {
  .page-title_ja {
    top: calc(50% - 0.75rem);
    font-size: 1.5rem;
  }
  .page-title_en {
    font-size: 8rem;
  }
  .page-top {
    right: 2rem;
    bottom: 2.8rem;
    width: 3rem;
    height: auto;
  }
}

/* 読み札アプリボタン */
.bnr-wrap {
  padding-top: 23rem;
}
.bnr-app-wrap {
  position: relative;
}
.bnr-app-wrap::before,
.bnr-app-wrap::after {
  position: absolute;
  content: "";
  background: url(../img/bnr-app_trim.svg) no-repeat center / cover;
  width: 87rem;
  height: 3.6rem;
  left: 50%;
}
.bnr-app-wrap::before {
  top: -3.6rem;
  transform: translate(-50%, 0);
}
.bnr-app-wrap::after {
  bottom: -3.6rem;
  transform: translate(-50%, 0) scaleY(-1);
}
.bnr-app {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--color-black);
  height: 16.8rem;
  margin-bottom: 9.8rem;
  overflow: hidden;
}
.bnr-app_text {
  color: var(--color-white);
  font-size: 4.3rem;
  font-weight: 700;
  line-height: 1;
  padding-left: 3.5rem;
}
.bnr-app_small {
  display: block;
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
}
.bnr-app-image01,
.bnr-app-image02 {
  position: absolute;
}
.bnr-app-image01 {
  right: -1rem;
  bottom: -1rem;
  width: 47.8rem;
  height: 18.8rem;
  z-index: -2;
}
.bnr-app-image02 {
  right: 9rem;
  bottom: -1rem;
  width: 15.9rem;
  height: 16.1rem;
  z-index: -1;
}
.bnr-app_bg {
  position: absolute;
  background: var(--color-red);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: -3;
}
@media (any-hover: hover) {
  .bnr-app,
  .bnr-app_bg {
    transition: all 0.3s ease-in-out allow-discrete;
  }
  .bnr-app:hover {
    overflow: visible;
  }
  .bnr-app:hover .bnr-app_bg {
    width: calc(100% + 2rem);
    height: calc(100% + 2rem);
  }
}
@media screen and (max-width: 767px) {
  .bnr-wrap {
    padding-top: 6.8rem;
  }
  .bnr-app-wrap::before,
  .bnr-app-wrap::after {
    background: url(../img/bnr-app_trim_sp.svg) no-repeat center / cover;
    width: 37rem;
    height: 2rem;
  }
  .bnr-app-wrap::before {
    top: -2rem;
  }
  .bnr-app-wrap::after {
    bottom: -2rem;
  }
  .bnr-app {
    height: 8.4rem;
    margin-bottom: 4rem;
    overflow: visible;
  }
  .bnr-app_text {
    font-size: 2rem;
    padding-left: 2rem;
  }
  .bnr-app_small {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .bnr-app-image01 {
    right: -0.6rem;
    bottom: -0.6rem;
    width: 20rem;
    height: 9.4rem;
  }
  .bnr-app-image02 {
    bottom: -0.6rem;
    right: 4.5rem;
    width: 6.4rem;
    height: 7.4rem;
  }
  .bnr-app_bg {
    width: calc(100% + 1.2rem);
    height: calc(100% + 1.2rem);
  }
  .bnr-app-arrow {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-black);
  }
}

/* 説明書ボタン */
.bnr-doc {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  width: 100%;
  padding: 2.8rem 3.5rem;
  border: 1px solid var(--color-black);
  margin: 0 auto;
}
.bnr-doc_bg {
  position: absolute;
  background: var(--color-black);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: -3;
}
.bnr-doc_text {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25em;
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-black);
}
.bnr-doc_small {
  font-size: 2.2rem;
}
@media (any-hover: hover) {
  .bnr-doc,
  .bnr-doc_bg {
    transition: all 0.3s ease-in-out allow-discrete;
  }
  .bnr-doc:hover {
    overflow: visible;
  }
  .bnr-doc:hover .bnr-doc_bg {
    width: calc(100% + 2rem);
    height: calc(100% + 2rem);
  }
}
@media screen and (max-width: 767px) {
  .bnr-doc {
    padding: 1.2rem 2rem;
  }
  .bnr-doc_text {
    font-size: 2rem;
  }
  .bnr-doc_small {
    font-size: 1rem;
  }
}

/* ルール説明動画 */
.movie-container {
  margin-top: 2.4rem;
}
.movie-item {
  margin-bottom: 6.4rem;
}
.movie-item:last-child {
  margin-bottom: 0;
}
.movie-item_head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.movie-item_head img {
  width: 3.9rem;
  height: auto;
}
.movie-item_mainTitle {
  font-size: 3rem;
  font-weight: 700;
}
.movie-item_subTitle {
  font-size: 2rem;
}
.movie-item_subTitle::before {
  content: "｜";
  margin-right: 0.25em;
}
.movie-item_movie {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
@media only screen and (max-width: 767px) {
  .movie-container {
    margin-top: 0;
  }
  .movie-item {
    margin-bottom: 3rem;
  }
  .movie-item:last-child {
    margin-bottom: 5rem;
  }
  .movie-item_head {
    gap: 0.7rem;
    margin-bottom: 0.6rem;
  }
  .movie-item_head img {
    width: 2.2rem;
  }
  .movie-item_mainTitle {
    font-size: 1.8rem;
  }
  .movie-item_subTitle {
    font-size: 1.2rem;
  }
  /* .movie-item_body {
    margin: 0 -3rem;
  } */
  .page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: var(--font-family-en);
    font-size: 1.3rem;
    text-align: left;
    background: var(--color-white);
    color: var(--color-black);
    width: 100%;
    padding: 1rem 2.2rem;
    margin: 0 auto;
  }
  .page-btn_arrow {
    filter: var(--filter-black);
  }
}

/* クレジット */
.back-container {
  padding-top: 6rem;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.6rem;
  color: var(--color-black);
  font-size: 1.8rem;
  padding: 2rem 0;
}
.back-btn_arrow {
  filter: var(--filter-black);
  transform: scaleX(-1);
}
.credit-title {
  margin-bottom: 3rem;
}
.credit-title_text {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  color: #959595;
}
.credit-item {
  margin-bottom: 8rem;
}
.credit-item:last-child {
  margin-bottom: 0;
}
.credit-item dl {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6rem;
  margin-bottom: 3rem;
}
.credit-item dl:last-child {
  margin-bottom: 0;
}
.credit-item_position {
  font-size: 1.8rem;
  line-height: 1.6;
  font-weight: 700;
  text-align: right;
  width: calc(50% - 3rem);
}
.credit-item_name {
  font-size: 1.6rem;
  line-height: 1.6;
  width: calc(50% - 3rem);
}
@media (any-hover: hover) {
  .back-btn {
    background: linear-gradient(
      90deg,
      var(--color-red) 0%,
      var(--color-red) 50%,
      var(--color-black) 50%,
      var(--color-black) 100%
    );
    background-size: 200% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: background-position 0.3s ease;
  }
  .back-btn:hover {
    background-position: 0 0;
  }
  .back-btn:hover .back-btn_arrow {
    filter: var(--filter-red);
  }
}
@media only screen and (max-width: 767px) {
  .back-container {
    padding-top: 0;
  }
  .back-btn {
    gap: 0.6rem;
    font-size: 1.2rem;
    padding: 1.6rem 0;
  }
  .back-btn_arrow {
    width: 2.2rem;
  }
  .credit-title {
    margin-bottom: 1.5rem;
  }
  .credit-title_text {
    font-size: 2rem;
    text-align: left;
  }
  .credit-item {
    margin-bottom: 4rem;
  }
  .credit-item dl {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: calc(1.4rem * 1.6);
  }
  .credit-item_position {
    font-size: 1.4rem;
    text-align: left;
    width: 100%;
  }
  .credit-item_name {
    font-size: 1.4rem;
    width: 100%;
  }
}
