@import "./variables.css";

* {
  box-sizing: border-box;
}

.screen {
  position: relative;
  flex-shrink: 1;
  padding: 30px 50px 30px 10px;
  max-width: 500px;
  aspect-ratio: 140 / 105;
}
@media (max-width: 640px) {
  .screen {
    max-width: 100%;
    padding: 20px;
  }
}
.mockup {
  position: relative;
  flex-shrink: 1;
  align-self: center;
  max-width: 400px;
  aspect-ratio: 15 / 13;

  img {
    width: 100%;
    object-fit: fill;
    filter: brightness(1.05);
  }
}

.screen img {
  width: 100%;
  object-fit: fill;
  border: 0.5px solid var(--classy-blue);
  border-radius: 8px;

  filter: drop-shadow(20px 10px 10px #0001);
  transform: perspective(700px) rotateY(-10deg) rotateZ(1deg) rotateY(7deg);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Zen Kaku Gothic New", "M PLUS 1p", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  line-height: 2;
  color: #223;
  word-break: auto-phrase;
  background-color: hsl(200, 100%, 99.5%);
  background-image: var(--pattern-plus);
}

section {
  scroll-margin-top: 60px;
}

.title-1st {
  font-size: 42px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;

  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 2px;
  text-decoration-color: hsl(from currentColor h s l / 0.1);

  &:before,
  &:after {
    /* content: ""; */
    position: absolute;
    border-radius: 666px;
    width: 200px;
    height: 200px;
    background: var(--teal);
    opacity: 0.05;
    mix-blend-mode: luminosity;
  }
  &:before {
    left: 0;
    transform: translate(-70%, -30%);
  }
  &:after {
    right: 0;
    transform: translate(70%, -30%);
  }
}
@media (max-width: 640px) {
  .title-1st {
    font-size: 21px;
  }
}
.title-2nd {
  font-size: 36px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow: hidden;

  @media (max-width: 640px) {
    font-size: 24px;
  }
}

.title-3th {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 28px;
  @media (max-width: 640px) {
    font-size: 18px;
  }
}
.title-4th {
  color: #445;
  font-size: 22px;
  font-weight: 500;
  text-align: center;

  @media (max-width: 640px) {
    font-size: 20px;
  }
}
.title-5th {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 28px;
}
.title-english {
  display: block;
  letter-spacing: 0.3em;
  font-weight: 300;
  color: var(--iron);
  @media (max-width: 640px) {
    font-size: 12px;
    letter-spacing: 0.3em;
  }
}

.p {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.01em;
  font-feature-settings: "palt";

  @media (max-width: 640px) {
    font-size: 14px;
    font-weight: 400;
  }
}
.bold {
  font-weight: 700;
}
.thin {
  font-weight: 100;
}
.light {
  font-weight: 200;
}
.demilight {
  font-weight: 300;
}
.regular {
  font-weight: 400;
}
.demibold {
  font-weight: 500;
}
.bold {
  font-weight: 600;
}
.black {
  font-weight: 700;
}

.underline {
  font-weight: 700;
  text-decoration: wavy;
  text-decoration-line: underline;
}
mark {
  font-weight: 700;
  background: hsl(from var(--ocean) h s l / 0.1);
  background: linear-gradient(transparent 60%, #ffe3aaaa 60%);
  background: linear-gradient(transparent 60%, #f6ff5faa 60%);
  border-radius: 0 0 8px 4px;
  padding: 0 4px;
  opacity: 0.8;
}

.inline {
  display: inline;
}

.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}

.color-ocean {
  color: var(--ocean);
}
.color-glow {
  color: var(--glow);
}
.color-teal {
  color: var(--teal);
}
.color-iron {
  color: var(--iron);
}
.color-friendly-gray {
  color: var(--friendly-gray);
}
.color-dark-cloudy {
  color: var(--dark-cloudy);
}
.color-rust {
  color: var(--rust);
  color: var(--teal);
  text-shadow: 0px 2px var(--cloudy);
}

.bg-cloudy {
  background: hsl(from var(--cloudy) calc(h + var(--hue-shift)) s l);
}
.bg-cloudy-weak {
  --hue-shift: 10;
  background: hsl(from var(--cloudy) h s l / 0.3);
  background: linear-gradient(
    145deg,
    hsl(from var(--cloudy) calc(h + var(--hue-shift)) s calc(l * 0.9)) 0%,
    hsl(from var(--cloudy) calc(h + var(--hue-shift)) s calc(l * 0.9)) 40%,
    hsl(
        from var(--cloudy) calc(h + var(--hue-shift)) calc(s * 0.9)
          calc(l * 0.8)
      )
      60%,
    hsl(
        from var(--cloudy) calc(h + var(--hue-shift)) calc(s * 0.9)
          calc(l * 0.8)
      )
      100%
  );
  box-shadow: inset 0px 0px 4px #0004;
}
.bg-white {
  background: #fff;
}
.bg-cream {
  background: var(--cream);
}
.bg-cream-weak {
  background: hsl(from var(--cream) h s l / 0.6);
}

.bg-algae {
  background: var(--algae);
}
.bg-algae-weak {
  background: hsl(from var(--algae) h s l / 0.3);
}

.flex {
  display: flex;
  gap: 50px;
}

.hero {
  background-color: var(--classy-blue);
  background-image: var(--hero-gradient);
  padding: 80px 20px 20px;
  box-shadow: inset 0px 0px 4px #0004;

  @media (max-width: 640px) {
    padding: 70px 10px 20px;
  }
}
.hero-panel {
  background: hsl(0deg 0% 100% / 20%);
  background: hsl(200deg 20% 100% / 30%);
  margin: 0 auto;
  border-radius: 10px;
  border-top: 1px solid #fff2;
  border-left: 1px solid #fff2;
  border-bottom: 1px solid #fff1;
  border-right: 1px solid #fff1;
  padding: 20px 5vw 0;
  backdrop-filter: blur(1px);
  max-width: var(--full-width);
}
@media (max-width: 640px) {
  .hero-panel {
    background: hsl(0deg 0% 100% / 50%);
  }
}
.hero-flex {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  margin-top: 50px;
  gap: 20px;
}
@media (max-width: 640px) {
  .hero-flex {
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
  }
}
.lws-page .hero {
  min-height: 160px;
}
.lws-page lws-section {
  padding-top: 0px;
}
.hero-slogan {
  justify-self: flex-start;
  display: block;
  margin: 0 auto;
  padding: 4px 32px;
  max-width: var(--main-width);
  color: white;
  font-size: 18px;
  font-weight: 400;
  font-feature-settings: "palt";
  text-align: center;
  line-height: 1;
  letter-spacing: 0.3em;
  text-shadow: 1px 1px 2px #0004;
  background: hsl(from var(--teal) h s l / 0.4);
  transform: skewX(-5deg);
}
@media (max-width: 640px) {
  .hero-slogan {
    margin-top: 10px;
    padding: 4px 8px;
    font-size: 16px;
    letter-spacing: 0.1em;
    word-break: auto-phrase;
  }
}

.hero-name {
  display: block;
  margin: 0 auto;
  gap: 0em;

  color: var(--iron);
  font-family: Inter, sans-serif;
  font-size: 48px;
  font-weight: 700;
  font-feature-settings: "palt";
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow: 2px 2px 2px #0002;
  word-break: keep-all;
}
@media (max-width: 720px) {
  .hero-name {
    word-break: normal;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .hero-name {
    font-size: 36px;
    line-height: 1;
  }
}
@media (max-width: 420px) {
  .hero-name {
    font-size: 28px;
  }
}
.hero-name-top {
  color: var(--rust);
}
.hero-name-bottom {
  color: var(--teal);
}
.hero-name-slogan {
  display: block;
  margin-top: 4px;
  text-align: right;
  font-size: 18px;
  letter-spacing: normal;
}
@media (max-width: 640px) {
  .hero-name-slogan {
    line-height: 24px;
  }
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 50px;

  & > div {
    z-index: 1;
  }
}
@media (max-width: 640px) {
  .hero-content {
    gap: 20px;
  }
}

.hero-content-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-size: 14px;
  color: var(--teal);
}
.hero-content-right {
  flex: 0 1 auto;
  img {
    width: 100%;
    object-fit: contain;
  }
}

.hero-cta {
  display: inline-block;
  border-radius: 8px;
  padding: 8px 24px;
  outline-offset: 2px;
  background-color: var(--teal);
  background-image: var(--cta-gradient);
  background-size: 200%;
  background-repeat: no-repeat;
  background-position: 150% 50%;
  animation: cta-gleam 10s linear 3s infinite;
  box-shadow: 0px 2px 4px #0001;

  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 400;
  white-space: nowrap;

  &:hover,
  &:focus-visible {
    opacity: 0.8;
  }
}
@media (max-width: 640px) {
  .hero-cta {
    font-size: 18px;
  }
}

@keyframes cta-gleam {
  0% {
    background-position: 150% 50%;
  }
  8% {
    background-position: -50% 50%;
  }
  100% {
    background-position: -50% 50%;
  }
}

/* -------------- */

.section-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* overflow: clip; */
  margin: 0 auto;
  border-radius: 20px;
  padding: 20px 20px 0;
  max-width: var(--main-width);

  background-size: contain;
  background-image: var(--pattern-stripe);
}
.section-container-bg {
  background: #fffc;
  background: none;
}
.section-clamp {
  width: 100%;
  max-width: var(--main-width);
  padding: 30px 0px 40px;
}
@media (max-width: 640px) {
  .section-clamp {
    padding: 0px 10px 20px;
  }
}
.feature-flex {
  display: flex;
  gap: 50px;
  @media (max-width: 640px) {
    flex-direction: column;
    gap: 25px;
  }
  & > * {
    flex: 1;
  }
}
.feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 30px 20px;
  background: white;
  max-width: 600px;
  border-radius: 3px;
  box-shadow: 0px 2px 4px #0001;
  @media (max-width: 640px) {
    padding: 0px 20px 10px;
  }
}

.feature-sticker {
  position: absolute;
  top: 15px;
  left: -4px;
  border-radius: 1.5px;
  padding: 0 8px;
  background: var(--teal);
  color: white;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 4px 4px 0px #0002;
}

.quotes {
  &:before,
  &:after {
    content: "”";
    display: inline-block;
    margin: 0 8px;
    color: var(--ocean);
    transform: rotate(-5deg) translateY(-5px);
  }
  &:after {
    transform: rotate(5deg) translateY(25px);
  }
}

/* feature as in 機能 */
.feature-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;

  @media (max-width: 640px) {
    flex-direction: column;
    gap: 15px;
  }
}

.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.speech-bubbles-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
@media (max-width: 800px) {
  .speech-bubbles-flex {
    flex-direction: column;
  }
}
.speech-bubbles {
  flex-basis: 50%;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 20px 40px;
  background: var(--cloudy);
  border-radius: 10px;
  box-shadow: inset 2px 2px 6px hsl(from var(--iron) h s l / 0.4);
  overflow: clip;

  & > div:nth-child(even) {
    align-self: flex-end;

    & > .speech-bubble {
      transform: rotate(0.5deg);
      &:after {
        right: 40px;
        transform: scaleY(1.3) skewX(33deg);
      }
    }
  }
  & > div:nth-child(odd) {
    align-self: flex-start;

    & > .speech-bubble {
      transform: rotate(-0.5deg);
      &:after {
        left: 50px;
        transform: scaleY(1.3) skewX(-45deg);
      }
    }
  }
}
@media (max-width: 640px) {
  .speech-bubbles {
    gap: 30px;
    margin-bottom: 30px;
  }
  .speech-bubbles > div:nth-child(odd) > .speech-bubble,
  .speech-bubbles > div:nth-child(even) > .speech-bubble {
    transform: rotate(0);
  }
}

.speech-bubble {
  --padding: 8px;
  position: relative;
  display: inline-block;
  border-radius: 10px;
  padding: var(--padding) calc(var(--padding) * 3);
  background: #fff;

  color: var(--rust);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  filter: drop-shadow(4px 4px 0px #0003);

  border: var(--card-border);

  &:after {
    content: "";
    display: block;
    position: absolute;
    bottom: calc(var(--padding) * 1.5 * -1 + 4px);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #fff;
  }
}
@media (max-width: 640px) {
  .speech-bubble {
    --padding: 8px;
    font-size: 14px;
    filter: drop-shadow(3px 3px 0px #0002);
  }
}

.faq-list {
  margin: auto;
}
.faq-item {
  margin: 20px auto 0;
  border-radius: 6px;
  border: var(--card-border);
  padding: 10px;
  background: #fff;
  box-shadow: 0px 2px 4px #0001;
  @media (max-width: 640px) {
    width: 100%;
  }
}
.faq-question {
  display: flex;
  padding: 10px 10px 10px 40px;
  font-size: 18px;
  line-height: 1.6;
  @media (max-width: 640px) {
    font-size: 16px;
  }
}
.faq-answer {
  padding: 10px 10px 10px 40px;
  opacity: 1;
  font-size: 16px;
  color: hsl(from currentColor h s l / 0.8);
}
.faq-summary {
  border-radius: 4px;
  &::marker {
    content: "";
  }
  &:hover {
    background: var(--glow);
  }
}
.faq-details {
  position: relative;
  &:before {
    content: "?";
    flex-shrink: 0;
    position: absolute;
    top: 10px;
    left: 5px;
    display: inline-block;
    margin-right: 15px;
    border-radius: 666px;
    width: 24px;
    height: 24px;
    background: hsl(from var(--cloudy) h s calc(l/1.4));
    color: white;
    text-align: center;
    line-height: 24px;
    opacity: 0.4;
    transition: height 0.5s;
    pointer-events: none;
    @media (max-width: 640px) {
      margin-right: 10px;
    }
  }
  /* &[open]:before {
    background-color: var(--teal);
  } */
  .faq-answer {
    animation: none;
  }
  &[open] .faq-answer {
    animation: fade-in 0.5s linear 0s forwards;
  }
}

.loose {
  width: 100%;
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  margin: -20px auto -20px;

  @media (max-width: 640px) {
    max-width: 160px;
    max-height: 160px;
    margin-bottom: -20px;
  }
}

.footer {
  display: flex;
  justify-content: center;
  padding: 40px;
  background: var(--iron);
  color: var(--glow);
  font-feature-settings: "palt";

  @media (max-width: 640px) {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 30px;
  }
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  row-gap: 20px;
  margin: auto;
  width: 100%;
  max-width: var(--full-width);
  @media (max-width: 480px) {
    justify-content: center;
    text-align: center;
  }
}
.footer-menu {
  display: flex;
  gap: 20px;
  justify-content: center;
  @media (max-width: 480px) {
    margin: auto;
  }

  a {
    display: block;
    font-size: 14px;
    line-height: 2;
    color: var(--glow);
  }
}
.footer-description {
  padding-left: 4px;
  color: var(--glow);
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1;
}
.footer-name {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 28px;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* utilities */

strong {
  font-weight: 500;
}

.mt-10 {
  margin-top: 10px;
  @media (max-width: 640px) {
    margin-top: 5px;
  }
}
.mt-20 {
  margin-top: 20px;
  @media (max-width: 640px) {
    margin-top: 10px;
  }
}
.mt-30 {
  margin-top: 30px;
  @media (max-width: 640px) {
    margin-top: 15px;
  }
}
.mt-40 {
  margin-top: 40px;
  @media (max-width: 640px) {
    margin-top: 20px;
  }
}
.mt-50 {
  margin-top: 50px;
  @media (max-width: 640px) {
    margin-top: 25px;
  }
}
.mt-100 {
  margin-top: 100px;
  @media (max-width: 640px) {
    margin-top: 50px;
  }
}
