/* ============================================================= *

uniform

* ============================================================= */
body {
  font-family: 'Inter', 'Noto Sans', sans-serif;
}

/* p-uniform-root
============================== */
.p-uniform-root {
  overflow: hidden;
  padding-top: var(--header-height);

  --inner-padding: 20px;
  --max-width: 1366px;
  --slope-desktop-px: clamp(.56223px, 0px + .07321vw, 1px);
  --slope-mobile-px: calc(1px + var(--slope-1px) * 1.04533);
  --slope-1px: clamp(0px, -0.378px + 0.101vw, 1px);
}

.p-uniform-root img {
  width: 100%;
}

/* p-uniform-hero
============================== */
.p-uniform-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-block: calc(40px + var(--slope-1px) * 24) calc(40px + var(--slope-1px) * 36);
}
.p-uniform-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  
  background-image: url('../img/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}
@media screen and (max-width: 540px) {
  .p-uniform-hero__bg {
    background-image: url('../img/hero_bg_sp.jpg');
  }
}

.p-uniform-hero__inner {
  display: grid;
  grid-template-columns: 8fr 7fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "left-top    right-side"
    "left-bottom right-side";
  padding-inline: calc(38px + var(--slope-1px) * 105);
  max-width: var(--max-width);
  margin-inline: auto;
  position: relative;
  z-index: 1;
  width: 100%;
  row-gap: calc(16px + var(--slope-1px) * 39);
}
@media screen and (max-width: 540px) {
  .p-uniform-hero__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "left-top" "right-side" "left-bottom";
    row-gap: calc(16px + var(--slope-1px) * 39);
  }
}

.p-uniform-hero__title {
  font-size: calc(32px + var(--slope-1px) * 18);
  font-weight: 700;
  line-height: 1.4;
  grid-area: left-top;
  margin-top: calc(0 + var(--slope-1px) * 50);
  align-self: end;
}
@media screen and (max-width: 767px) {
  .p-uniform-hero__title {
    font-size: calc(22px + var(--slope-1px) * 28);
    align-self: center;
  }
}
@media screen and (max-width: 540px) {
  .p-uniform-hero__title {
    font-size: calc(32px + var(--slope-1px) * 18);
    justify-self: center;
  }
}
.text {
  display: flex;
  justify-content: flex-start;
  color: #000;
  font-size: calc(32px + var(--slope-1px) * 18);
  font-weight: 700;
	line-height: 1.4;
}
.char {
  overflow: hidden;
  display: inline-block;
}
.char-text {
  display: inline-block;
  transform: translateX(-101%);
  animation: slideIn 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  animation-delay: calc(1s + (0.05s * var(--char-index)));
}
@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}


.p-uniform-hero__lead {
  font-size: calc(12px + var(--slope-1px) * 10);
  font-weight: 500;
  line-height: 1.9;
  grid-area: left-bottom;
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
  animation-delay: 4.2s;
  word-break: keep-all;
}
@media screen and (max-width: 540px) {
  .p-uniform-hero__lead {
    justify-self: center;
  }
}

@media screen and (max-width: 767px) {
  .p-uniform-hero__lead .u-inline-block {
    display: none;
  }
}
@media screen and (max-width: 540px) {
  .p-uniform-hero__lead .u-inline-block {
    display: inline-block;
  }
}

.p-uniform-hero__box._right {
  display: grid;
  grid-template-columns: repeat(100, 1fr);
  height: fit-content;
  grid-area: right-side;
  margin-right: -10%;
  align-self: center;
}
@media screen and (max-width: 540px) {
  .p-uniform-hero__box._right {
    margin-right: 0;
    justify-self: center;
  }
}

.p-uniform-hero__fig._01 {
  grid-column: 1 / 52;
  grid-row: 1 / 60;
}
.p-uniform-hero__fig._02 {
  grid-column: 2 / 64;
  grid-row: 40 / 93;
}
.p-uniform-hero__fig._03 {
  grid-column: 50 / 100;
  grid-row: 1 / 100;
}

.p-uniform-hero__fig {
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

.p-uniform-hero__fig._01 { animation-delay: 1.8s; }
.p-uniform-hero__fig._02 { animation-delay: 2.6s; }
.p-uniform-hero__fig._03 { animation-delay: 3.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* p-uniform-design
============================== */
.p-uniform-design {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.p-uniform-design__bg {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  
  background-image: url('../img/design_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.p-uniform-design__title--en {
  position: absolute;
  top: 16px;
  left: 0;
  color: #F3F3F3;
  font-family: "Bacasime Antique", "serif";
  font-size: calc(72px + var(--slope-1px) * 80);
  font-weight: 400;
  line-height: 0.77;
  letter-spacing: 4.56px;
  writing-mode: vertical-rl;
}

.p-uniform-design__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  z-index: 1;
}
@media screen and (max-width: 767px) {
  .p-uniform-design__inner {
    flex-direction: column;
  }
}

.p-uniform-design__content {
  flex: 6;
  padding-block: calc(80px + var(--slope-1px) * 72) calc(78px + var(--slope-1px) * 70);
  padding-inline: calc(38px + var(--slope-1px) * 105) calc(30px + var(--slope-1px) * 74);
}

.p-uniform-design__head {
  font-size: calc(26px + var(--slope-1px) * 22);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.p-uniform-design-item {
  margin-top: calc(50px + var(--slope-1px) * 20);
}

.p-uniform-design-item__head {
  font-size: calc(15px + var(--slope-1px) * 5);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.p-uniform-design-item__body {
  margin-top: calc(18px + var(--slope-1px) * 8);
  font-size: calc(12px + var(--slope-1px) * 6);
  line-height: 1.9;
  font-weight: 400;
  word-break: keep-all;
}

.p-uniform-design-item__body ul {
  counter-reset: design-counter;
}

.p-uniform-design-item__body ul li {
  counter-increment: design-counter;
  word-break: keep-all;
}

.p-uniform-design-item__body ul li::before {
  content: counter(design-counter) ". "; /* 番号の後にピリオドとスペースを表示 */
}

.p-uniform-design-item__foot {
  margin-top: calc(36px + var(--slope-1px) * 20);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: -1em;
  height: fit-content;
}


/* p-uniform-design-gallery
============================== */
.p-uniform-design-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
  width: 100%;
  height: var(--gallery-height);

  --gallery-height: 1103px;
  --image-width: 100%;
  --length: 9;
}

@media screen and (max-width: 767px) {
  .p-uniform-design-gallery {
    grid-template-columns: 100%;
    width: calc(100% + var(--inner-padding) * 2);
    height: auto;
    margin-inline: calc(var(--inner-padding) * -1);

    --image-width: calc(100 / 480 * 200 * var(--vw));
    padding-bottom: 16px;
  }
}

.p-uniform-design-gallery__slider {
  display: flex;
  flex-direction: column;
}

@media screen and (max-width: 767px) {
  .p-uniform-design-gallery__slider {
    flex-direction: row;
    flex-wrap: nowrap;
    width: fit-content;
    min-width: 100%;
  }
}

.p-uniform-design-gallery__slider._first {
  transform: translateY(calc(-100% + var(--gallery-height)));

  --direction: 1;
}

@media screen and (max-width: 767px) {
  .p-uniform-design-gallery__slider._first {
    transform: translateX(calc(var(--vw) * 100 - 200%));
  }
}

.p-uniform-design-gallery__slider._second {
  --direction: -1;
}

.p-uniform-design-gallery__slider.is-moving {
  animation: verticalMarquee linear calc(23s * var(--length)) infinite;
}

@media screen and (max-width: 767px) {
  .p-uniform-design-gallery__slider.is-moving {
    animation: horizontalMarquee linear calc(13s * var(--length)) infinite;
  }
}

.p-uniform-design-gallery__list {
  display: grid;
  grid-template-columns: 100%;
}

@media screen and (max-width: 767px) {
  .p-uniform-design-gallery__list {
    display: flex;
    flex-shrink: 0;
    width: auto;
    grid-template-columns: none;
  }
}

.p-uniform-design-gallery__list > li {
  overflow: hidden;
  width: var(--image-width);
  aspect-ratio: 280/400;
}

@media screen and (max-width: 767px) {
  .p-uniform-design-gallery__list > li {
    flex-shrink: 0;
    width: var(--image-width);
  }
}

@keyframes verticalMarquee {
  0% {
    transform: translateY(calc(-50% * (var(--direction) + 1) / 2));
  }
  100% {
    transform: translateY(calc(-50% * (1 - var(--direction)) / 2));
  }
}

@keyframes horizontalMarquee {
  0% {
    transform: translateX(calc(-50% * (var(--direction) + 1) / 2));
  }
  100% {
    transform: translateX(calc(-50% * (1 - var(--direction)) / 2));
  }
}




.p-uniform-story {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-block: calc(50px + var(--slope-1px) * 32) calc(90px + var(--slope-1px) * 48);
}
.p-uniform-story__bg--top {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  
  background-image: url('../img/story_bg_top.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}
@media screen and (max-width: 767px) {
  .p-uniform-story__bg--top {
    background-size: 150%;
    background-position: left top;
  }
}
.p-uniform-story__bg--bottom {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  
  background-image: url('../img/story_bg_bottom.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
}
@media screen and (max-width: 767px) {
  .p-uniform-story__bg--bottom {
    background-size: 150%;
    background-position: right bottom;
  }
}
.p-uniform-story__bg {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  
  background-image: url('../img/story_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}
@media screen and (max-width: 767px) {
  .p-uniform-story__bg {
    background-position: 65% 100%;
  }
}

.p-uniform-story__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: calc(38px + var(--slope-1px) * 173);
}

.p-uniform-story__head {
  margin-inline: auto;
  display: grid;
  place-items: center;
  position: relative;
}

.p-uniform-story__head > * {
  grid-area: 1 / 1;
}

.p-uniform-story__title {
  font-size: calc(26px + var(--slope-1px) * 22);
  font-weight: 700;
  line-height: 1;
  z-index: 10;
}

.p-uniform-story__title--en {
  color: #F3F3F3;
  font-family: "Bacasime Antique", "serif";
  font-size: calc(80px + var(--slope-1px) * 100);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 5.4px;
}

.p-uniform-story__lead {
  display: flex;
  justify-content: center;
  font-size: calc(16px + var(--slope-1px) * 12);
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  margin-top: calc(40px + var(--slope-1px) * 20);
}

.p-uniform-story__content {
  margin-top: calc(60px + var(--slope-1px) * 20);
}

.p-uniform-story__box._left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

@media screen and (max-width: 540px) {
  .p-uniform-story-item:nth-child(1) {
    gap: calc(40px + var(--slope-1px) * 24);
  }
}
.p-uniform-story-item:nth-child(2) {
  gap: calc(40px + var(--slope-1px) * 20);
}
.p-uniform-story-item:nth-child(3) {
  gap: calc(40px + var(--slope-1px) * 24);
}

.p-uniform-story-item:nth-child(1) .p-uniform-story__box._left {
  flex: 1;
}
.p-uniform-story-item:nth-child(1) .p-uniform-story__box._right {
  flex: 1;
}
.p-uniform-story-item:nth-child(2) .p-uniform-story__box._left {
  flex: 3;
}
.p-uniform-story-item:nth-child(2) .p-uniform-story__box._right {
  flex: 2;
}
.p-uniform-story-item:nth-child(3) .p-uniform-story__box._left {
  flex: 3;
}
.p-uniform-story-item:nth-child(3) .p-uniform-story__box._right {
  flex: 2;
}

.p-uniform-story__box._right._fig-x2 {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
}
.p-uniform-story__box._right._fig-x2 .p-uniform-story__fig:first-child {
  grid-column: 1 / 20;
  grid-row: 1 / 12;
}
.p-uniform-story__box._right._fig-x2 .p-uniform-story__fig:last-child {
  grid-column: 8 / 20;
  grid-row: 11 / 20;
}

.p-uniform-story-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 540px) {
  .p-uniform-story-item {
    flex-direction: column;
  }
}

.p-uniform-story-item:not(:first-child) {
  margin-top: calc(100px + var(--slope-1px) * 60);
}

.p-uniform-story-item._reverse {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
}
@media screen and (max-width: 540px) {
  .p-uniform-story-item._reverse {
    flex-direction: column;
  }
}

.p-uniform-story-item__head {
  font-size: calc(17px + var(--slope-1px) * 11);
  font-weight: 700;
  line-height: 1.6;
}

.p-uniform-story-item__body {
  font-size: calc(12px + var(--slope-1px) * 6);
  font-weight: 500;
  line-height: 1.9;
  margin-top: calc(20px + var(--slope-1px) * 18);
  word-break: keep-all;
}
@media screen and (max-width: 767px) {
  .p-uniform-story-item__body .u-inline-block {
    display: none;
  }
}

.p-uniform-story__designer {
  margin-top: calc(100px + var(--slope-1px) * 64);
}

.p-uniform-story-designer__head {
  display: grid;
  grid-template-columns: 3fr 4fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "left-side right-top"
    "left-side right-bottom";
  row-gap: calc(20px + var(--slope-1px) * 20);
  column-gap: calc(28px + var(--slope-1px) * 20);
}
@media screen and (max-width: 540px) {
  .p-uniform-story-designer__head {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "right-top"
      "left-side"
      "right-bottom";
    row-gap: calc(20px + var(--slope-1px) * 20);
    column-gap: calc(28px + var(--slope-1px) * 20);
  }
}

.p-uniform-designer__fig {
  /* flex: 4; */
  grid-area: left-side;
  align-self: center;
}

.p-uniform-designer__box {
  /* flex: 6; */
}

.p-uniform-designer-box__name {
  display: flex;
  align-items: baseline;
  gap: 20px;
  grid-area: right-top;
}

.p-uniform-designer-box__sub {
  font-size: calc(12px + var(--slope-1px) * 6);
  font-weight: 400;
  line-height: 1;
}

.p-uniform-designer-box__name {
  margin-top: calc(18px + var(--slope-1px) * 6);
}

.p-uniform-designer-box__name > span {
  font-size: calc(20px + var(--slope-1px) * 8);
  font-weight: 700;
  line-height: 1;
}
.p-uniform-designer-box__name > span:last-child {
  font-size: calc(12px + var(--slope-1px) * 4);
  font-weight: 400;
  line-height: 1;
}

.p-uniform-designer__content {
  margin-top: calc(26px + var(--slope-1px) * 14);
}

.p-uniform-story-designer__head .p-uniform-designer__content {
    margin-top: 0;
    grid-area: right-bottom;
}

.p-uniform-designer-content__head {
  font-size: calc(16px + var(--slope-1px) * 10);
  font-weight: 400;
  line-height: 1;
  padding-bottom: 15px;
  border-bottom: 1px solid #161616;
}

.p-uniform-designer-content__body {
  font-size: calc(12px + var(--slope-1px) * 4);
  font-weight: 500;
  margin-top: calc(16px + var(--slope-1px) * 4);
  line-height: 1.75;
}

.p-uniform-designer-content__body span {
  font-weight: 700;
}

.p-uniform-designer-content__body ul {
  text-indent: -1em;
  padding-left: 1em;
}

.p-uniform-designer-content__body ul li {
  word-break: keep-all;
}

.p-uniform-designer-content__body ul li::before {
  content: "\30FB";
  display: inline-block;
  width: 1em;
  text-align: center;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  .p-uniform-designer-content__body ul li .u-inline-block {
    display: none;
  }
}

.p-uniform-future {
  width: 100%; 
  padding-block: calc(90px + var(--slope-1px) * 48);
}

.p-uniform-future__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: calc(60px + var(--slope-1px) * 32);
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: calc(38px + var(--slope-1px) * 208);
}
@media screen and (max-width: 767px) {
  .p-uniform-future__inner {
    flex-direction: column;
  }
}

.p-uniform-future__content {
  flex: 6;
}

.p-uniform-future-content__head {
  font-size: calc(17px + var(--slope-1px) * 11);
  font-weight: 700;
  line-height: 1;
}

.p-uniform-future-content__body {
  font-size: calc(12px + var(--slope-1px) * 4);
  margin-top: calc(40px + var(--slope-1px) * 16);
}

.p-uniform-future-content__body p {
  margin-top: 1em;
}

.p-uniform-future-content__body p span,
.p-uniform-future-content__body p a {
  font-weight: 700;
}

.p-uniform-future__fig {
  flex: 4;
}


/* utility */
._line-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 16px;
  width: 100%;
  background-image: url('../img/line.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto;
  z-index: 10;
}
._line-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 16px;
  width: 100%;
  background-image: url('../img/line.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto;
  z-index: 10;
}

.u-pc-inline-block {
  display: inline-block;
}
@media screen and (max-width: 767px) {
  .u-pc-inline-block {
    display: none;
  }
}

.u-sp-inline-block {
  display: none;
}
@media screen and (max-width: 767px) {
  .u-sp-inline-block {
    display: inline-block;
  }
}

[data-intersection] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}

[data-intersecting="true"] {
  opacity: 1;
  transform: translateY(0);
}