/* ----------
  Settings
---------- */

:root {
  --color-black: 41, 31, 31;
  --color-white: 255, 255, 255;
  --color-1: 255, 187, 28; /* イエロー */
  --color-2: 67, 171, 255; /* ライトブルー */
  --color-3: 199, 199, 199; /* グレー */
  --color-4: 248, 250, 223; /* クリーム */

  --thickness-s: 2px;
  --thickness-m: 4px;
  --thickness-l: 8px;

  --borderradius-round: calc(1px * infinity);
  --borderradius-s: 0.5rem;
  --borderradius-m: 1rem;
  --borderradius-l: 2rem;

  --border: var(--thickness-m) solid rgba(var(--color-black));

  --height-nav: 0px;
}

/* ----------
  Tools
---------- */

/* ----------
  Generic
---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
img {
  display: block;
  width: 100%;
  min-width: 0;
}
body {
  color: rgba(var(--color-black));
  font-family: "Ubuntu", "BIZ UDPGothic", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* ----------
  Elements
---------- */

/* ----------
  Objects
---------- */
.l-wrapper--m {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: 4%;
}
.l-announcement-bar {
}
.l-header {
  position: absolute;
  z-index: 1;
  width: 100%;
}
.l-main {
}
.l-hero {
  padding-block: 2rem;
}
.l-main-background {
  width: 100%;
  height: 200px;
  position: relative;
  z-index: -1;
  bottom: 199px;
  margin-bottom: -200px;
  background-color: rgba(var(--color-4));
  box-shadow: 0 -8px 8px rgba(var(--color-3), 0.2);
}
.l-nav {
  position: sticky;
  top: 0;
  z-index: 2;
}
.l-nav + * {
  margin-block-start: calc(-1 * var(--height-nav));
  padding-block-start: var(--height-nav);
}
.l-concept {
  position: relative;
  z-index: 0;
  background-color: rgba(var(--color-4));
}
.l-before-flow {
  position: relative;
  z-index: 1;
  background-color: rgba(var(--color-4));
  height: 0;
}
.l-before-flow__inner {
  height: 100vw;
  overflow-x: hidden;
}
.l-flow {
  background-color: rgba(var(--color-4));
  padding-block: 10rem;
}
.l-footer {
}

/* ----------
  Components
---------- */

/* button */
.button {
  border: var(--border);
  border-radius: var(--borderradius-s);
  box-shadow: 0 var(--thickness-l) 0 rgba(var(--color-black));
  transition: translate 0.1s ease, box-shadow 0.1s ease;
}
.button--primary {
  background-color: rgba(var(--color-2), 1);
  color: rgba(var(--color-black));
}
.button:hover {
  translate: 0 var(--thickness-l);
  box-shadow: none;
}

/* announcement-bar */
.announcement-bar {
}

/* body */
.body {
  background-image: url(assets/body_bg.jpg);
  background-attachment: fixed;
}

/* header */
.header {
  padding-block: 0.5rem;
}
.header__logo {
  height: 2rem;
  width: auto;
}

/* main */
.main {
  position: relative;
}

/* main-background */
.main-background {
}

/* hero */
.hero {
  container-type: inline-size;
  position: relative;
}
.hero__inner {
  background-color: rgba(var(--color-1));
  padding: 8cqw 6cqw;
  border: var(--border);
  border-radius: var(--borderradius-l);
}
.hero__info {
  margin-inline-end: 36cqw;
}
.hero__title {
  position: relative;
  font-family: "Mochiy Pop P One", sans-serif;
  font-size: 7cqw;
  font-weight: bold;
  line-height: 1.2;
}
.hero__title-text,
.hero__title::after {
  font-size: inherit;
  font-weight: inherit;
}
.hero__title-text {
  -webkit-text-stroke: var(--thickness-s) rgba(var(--color-black));
  /* text-shadow: 5px 5px 0 rgba(var(--color-3), 0.8); */
  color: rgba(var(--color-white));
  position: relative;
  z-index: 1;
}
.hero__title::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  -webkit-text-stroke: var(--thickness-s) transparent;
  content: "あなたのサイト\Aピカピカにします";
  white-space: pre;
  display: block;
  translate: 0.08em 0.08em;
  background-image: radial-gradient(
    circle at center,
    rgba(var(--color-2)) 1px,
    transparent 0
  );
  background-size: 3px 3px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__lead {
  line-height: 2;
  font-size: 2cqw;
  margin-block-start: 4cqw;
}
.hero__button {
  display: inline-block;
  font-size: 2cqw;
  margin-block-start: 4cqw;
  padding: 1cqw 2cqw;
}
.hero__image {
}
.hero__main-image {
  position: absolute;
  bottom: -2cqw;
  right: 0;
  width: 45cqw;
  height: auto;
  animation: mv-arainokuma 4s ease 0s infinite;
  transform-origin: bottom;
}
.hero__twincle-image-1 {
  position: absolute;
  top: 7cqw;
  right: 4cqw;
  width: 7cqw;
  height: auto;
  animation: twincle 3s ease 0s infinite;
}
.hero__twincle-image-2 {
  position: absolute;
  top: 14cqw;
  right: 2.5cqw;
  width: 5cqw;
  height: auto;
  animation: twincle 3.5s ease 1.5s infinite;
}
@media (max-width: 767px) {
  .hero__info {
    margin-inline-end: 0;
    margin-block-end: 60cqw;
  }
  .hero__title-text,
  .hero__title::after {
    font-size: 10cqw;
  }
  .hero__lead {
    font-size: 3cqw;
  }
  .hero__button {
    font-size: 3cqw;
    padding: 1.5cqw 3cqw;
  }
  .hero__main-image {
    width: 80cqw;
    bottom: -2cqw;
  }
  .hero__twincle-image-1 {
    position: absolute;
    top: 48cqw;
    right: 1cqw;
    width: 12cqw;
    height: auto;
  }
  .hero__twincle-image-2 {
    position: absolute;
    top: 62cqw;
    right: 1.5cqw;
    width: 8cqw;
    height: auto;
  }
}
@keyframes twincle {
  0% {
    rotate: y 0deg;
  }

  30% {
    rotate: y 1turn;
  }

  to {
    rotate: y 1turn;
  }
}
@keyframes mv-arainokuma {
  0% {
    rotate: 0deg;
  }

  5% {
    rotate: 3deg;
  }

  10% {
    rotate: 0deg;
  }

  15% {
    rotate: 3deg;
  }

  20% {
    rotate: 0deg;
  }

  to {
    rotate: 0;
  }
}

/* nav */
.nav {
  display: flex;
  justify-content: center;
}
.nav__list {
  --height-top-ornamentation: 24px;

  display: inline-flex;
  padding: 0.5em 2em;
  border: var(--border);
  border-radius: var(--borderradius-round);
  background-color: rgba(var(--color-white));
  position: relative;
  margin-block-start: calc(var(--height-top-ornamentation) * 60 / 100);
}
.nav__list::before {
  content: "";
  display: inline-block;
  position: absolute;
  bottom: 100%;
  left: 50%;
  translate: -50% 0;
  background-image: url(assets/nav_silhouette.svg);
  background-repeat: no-repeat;
  background-size: 100% auto;
  width: var(--height-top-ornamentation);
  aspect-ratio: 100 / 60;
}
.nav__item {
  display: inline-flex;
  align-items: center;
}
.nav__item:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: var(--thickness-m);
  height: 100%;
  border-radius: var(--borderradius-round);
  background-color: rgba(var(--color-black));

  margin-inline: 1em;
}
.nav__item-text {
  font-weight: bold;
}

/* concept */
.concept {
  position: relative;
  min-height: 200vh;
}
.concept__background-logo {
  position: sticky;
  top: 0;
  padding-block-start: 50vh;
  width: 50%;
  height: auto;
  margin-inline: auto;
}
.concept__background-logo-inner {
  scale: 0;
  opacity: 0;
  transition: scale 0.3s ease-in, opacity 0.3s ease-in;
}
.concept:has(.concept__info-inner.--show) .concept__background-logo-inner {
  opacity: 0.3;
}
.concept__background-logo-inner.--show {
  scale: 1;
  opacity: 1;
}
.concept__info {
  padding-block-start: 100vh;
  padding-block-end: 100vh;
  padding-inline: 4%;
  position: relative;
  z-index: 1;
}
.concept__info-inner {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}
.concept__info-inner.--show {
  opacity: 1;
}

/* before-flow */
.before-flow {
  position: relative;
}
.before-flow__image-sponge {
  aspect-ratio: 7 / 10;
  width: 10%;
  height: auto;
  rotate: -12deg;
  border: var(--border);
  background-color: rgba(37, 192, 48);
  position: absolute;
  top: 72vw;
  left: -10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.before-flow__image-mop {
  aspect-ratio: 2 / 1;
  width: 30%;
  height: auto;
  rotate: 10deg;
  border: var(--border);
  background-color: rgba(var(--color-1));
  position: absolute;
  top: 54vw;
  right: -20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.before-flow__image-bucket {
  aspect-ratio: 1 / 1;
  width: 35%;
  height: auto;
  border-radius: var(--borderradius-round);
  border: var(--border);
  background-color: rgba(var(--color-2));
  position: absolute;
  top: 36vw;
  left: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* flow */
.flow {
  --width-arainokuma: 10rem;
  --aspectratio-arainokuma: 625 / 593;
  --height-arainokuma: calc(
    var(--width-arainokuma) * var(--aspectratio-arainokuma)
  );
  --width-miror: calc(var(--width-arainokuma) + (0.5rem * 2));

  position: relative;
  display: grid;
  grid-template:
    "title title"
    "info image";
  gap: 2rem;
}
.flow__title {
  grid-area: title;
  position: relative;
  font-family: "Mochiy Pop P One", sans-serif;
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.2;
  width: fit-content;
  margin-inline: auto;
}
.flow__title-text {
  -webkit-text-stroke: var(--thickness-s) rgba(var(--color-black));
  color: rgba(var(--color-white));
  position: relative;
  z-index: 1;
}
.flow__title-shadow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  -webkit-text-stroke: var(--thickness-s) transparent;
  translate: 0.08em 0.08em;
  background-image: radial-gradient(
    circle at center,
    rgba(var(--color-2)) 1px,
    transparent 0
  );
  background-size: 3px 3px;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.flow__info {
  grid-area: info;
  flex-grow: 1;
  align-self: flex-start;
  border-radius: var(--borderradius-m);
  background-color: rgba(var(--color-1), 0.2);
  padding: 2rem;
  margin-block-end: var(--height-arainokuma);
  margin-inline-end: calc(var(--height-arainokuma) * -1 + 1rem);
}
.flow__image {
  grid-area: image;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.flow__image-mirror-and-arainokuma {
  position: relative;
  display: flex;
  align-items: flex-end;
}
.flow__image-mirror {
  flex-grow: 1;
  border: var(--border);
  background-color: rgba(var(--color-3), 0.5);
  aspect-ratio: 3 / 4;
  height: auto;
  width: var(--width-miror);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
  transform: skewX(177deg) rotateY(25deg);
}
.flow__image-mirror-arainokuma {
  aspect-ratio: 625 / 593;
  height: auto;
  width: 100%;
  opacity: 0.8;
}
.flow__image-arainokuma {
  flex-grow: 1;
  position: relative;
  right: -1rem;
  aspect-ratio: var(--aspectratio-arainokuma);
  width: var(--width-arainokuma);
  height: auto;
  transform: rotateY(165deg);
  z-index: 1;
}
.flow__image-bucket {
  position: absolute;
  bottom: 0;
  left: 2%;
  border: var(--border);
  background-color: rgba(var(--color-2));
  width: 10%;
  height: auto;
  aspect-ratio: 4 / 5;
}
.flow__image-sponge {
  position: absolute;
  bottom: 0;
  left: 0;
  border: var(--border);
  background-color: rgba(37, 192, 48);
  width: 5%;
  height: auto;
  aspect-ratio: 3 / 2;
}
@media (max-width: 767px) {
  .flow {
    --width-arainokuma: 50%;

    grid-template-areas: 
      "title"
      "image"
      "info";
  }
  .flow__title {

  }
  .flow__info {
    margin-block-end: 0;
    margin-inline-end: 0;
  }
  .flow__image {
  }
  .flow__image-mirror-and-arainokuma {
    width: 100%;
    display: flex;
    align-items: flex-end;
  }
  .flow__image-mirror {
  }
  .flow__image-arainokuma {
  }
}

/* footer */
.footer {
}

/* ----------
  Utilities
---------- */

/* ----------
  Others
---------- */
