/* =========================
   reset
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #333;
  line-height: 1.8;
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    Meiryo,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================
   common
========================= */

.section__inner {
  margin: 0 auto;
  width: min(1080px, calc(100% - 48px));
}

.section-heading {
  margin-bottom: 72px;
  text-align: center;
}

.section-heading__en {
  margin: 0 0 4px;
  color: #999;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
}

.section-heading h2 {
  margin: 0;
  color: #333;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: .04em;
}


/* =========================
   header
========================= */

.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  width: min(1120px, calc(100% - 48px));
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__jp img {
  width: 150px;
}

.logo__en {
  color: #666;
  font-size: 12px;
  letter-spacing: .08em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  transition: color .2s ease;
  color: #555;
  font-size: 14px;
}

.nav a:hover {
  color: #333;
}


/* =========================
   button
========================= */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
  box-shadow: 0 6px 16px rgba(83, 166, 239, .18);
  border-radius: 999px;
  background: #53a6ef;
  padding: 0 24px;
  min-width: 150px;
  height: 46px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(83, 166, 239, .25);
  background: #4599e3;
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(83, 166, 239, .18);
}


/* =========================
   hero
========================= */

.hero {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  transform: scale(0.95);
  opacity: 0;
  filter: blur(3px);
  transition: all 0.5s 0.5s ease-out;
  background: #fff;
  padding: 120px 24px 100px;
  min-height: 680px;
  overflow: hidden;
  text-align: center;
}

body.loaded .hero {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
}

/* HERO背景 */

.hero::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.4s 2s ease-in;
  background-image: url("../images/hero-bg.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  aspect-ratio: 1672 / 941;
  width: 1200px;
  pointer-events: none;
  content: '';
}

body.loaded .hero::before {
  opacity: 0.6;
}


/* HEROコンテンツ */

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero__brand {
  margin: 0 0 10px;
}

.hero__brand img {
  width: 120px;
}

.hero h1 {
  transform: translateX(0.3em);
  margin: 0;
  color: #555;
  font-weight: 600;
  font-size: 60px;
  line-height: 1.45;
  letter-spacing: .06em;
}

.hero h1 .accent {
  display: inline-block;
  opacity: 0;
  filter: blur(1px);
  color: #53a6ef;
}

.hero h1 .accent.raku {
  transition:
    opacity 0.4s 1s ease-in,
    filter 0.4s 1s ease-in;
}

.hero h1 .accent.karu {
  transition:
    opacity 0.4s 1.35s ease-in,
    filter 0.4s 1.35s ease-in;
}

.hero h1 .accent.calc {
  transition:
    opacity 0.4s 1.7s ease-in,
    filter 0.4s 1.7s ease-in;
}

body.loaded .hero h1 .accent {
  opacity: 1;
  filter: blur(0);
}

.hero__lead {
  margin: 30px 0 38px;
  color: #555;
  font-size: 16px;
  line-height: 2;
}


/* =========================
   tools
========================= */

.tools {
  background: #f6f6f6;
  padding: 110px 0 130px;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 90px;
  transition:
    transform .35s ease,
    box-shadow .35s ease;
  margin-bottom: 48px;

  box-shadow: 0 12px 40px rgba(0, 0, 0, .045);
  border-radius: 20px;
  background: #fff;
  padding: 50px 50px;
}

.tool-card:last-child {
  margin-bottom: 0;
}

.tool-card--reverse {
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
}

.tool-card--reverse .tool-card__content {
  grid-row: 1;
  grid-column: 2;
}

.tool-card--reverse .tool-card__screen {
  grid-row: 1;
  grid-column: 1;
}

.tool-card__number {
  margin: 0 0 8px;
  color: #aaa;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .12em;
}

.tool-card h3 {
  margin: 0 0 20px;
  color: #333;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.5;
  letter-spacing: .04em;
}

.tool-card__catch {
  margin: 0 0 10px;
  color: #53a6ef;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.6;
}

.tool-card__description {
  margin: 0 0 25px;
  max-width: 520px;
  color: #555;
  font-size: 15px;
}


/* =========================
   tool screen
========================= */

.tool-card__screen {
  transition: transform .2s ease-out;
  margin-inline: auto;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .025),
    0 8px 24px rgba(0, 0, 0, .06);
  border: 1px solid #eee;
  border-radius: 15px;
  width: 400px;
  height: 400px;
  overflow: hidden;
}

.tool-card__screen:hover {
  transform: scale(1.02);
}

.tool-card__screen img {
  display: block;
  border-radius: 15px;
  width: 100%;
}


/* =========================
   money plan image hover
========================= */

.money-plan-image {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

.money-plan-image img {
  display: block;
  border-radius: 15px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 2枚目の画像 */
.money-plan-image .image-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .3s ease;
}

/* マウスオーバー */
.money-plan-image:hover .image-hover {
  opacity: 1;
}


/* =========================
   about
========================= */

.about {
  background: #fff;
  padding: 120px 0 130px;
}

.about__content {
  margin: 0 auto;
  max-width: 680px;
  color: #555;
  font-size: 15px;
  line-height: 2;
  text-align: center;
}

.about__content p {
  margin: 0 0 28px;
}

.about__content p:last-child {
  margin-bottom: 0;
}


/* =========================
   footer
========================= */

.footer {
  background: #f6f6f6;
  padding: 48px 24px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  width: min(1080px, 100%);
}

.footer__logo img {
  width: 130px;
}

.footer__copy {
  margin: 0;
  color: #666;
  font-size: 13px;
}


/* =========================
   responsive
========================= */

@media (max-width: 900px) {

  .header__inner {
    height: 72px;
  }

  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 12px;
  }

  .hero {
    padding-top: 100px;
    min-height: 600px;
  }

  .hero::before {
    width: 900px;
  }

  .hero h1 {
    font-size: 50px;
  }

  .tools {
    padding: 80px 0;
  }

  .section-heading {
    margin-bottom: 48px;
  }

  .tool-card,
  .tool-card--reverse {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 44px 32px;
  }

  .tool-card__content {
    width: 100%;
  }

  .tool-card h3 {
    font-size: 28px;
  }

  .about {
    padding: 80px 0;
  }
}


@media (max-width: 520px) {

  .section__inner {
    width: min(100% - 32px, 1080px);
  }

  .header__inner {
    width: calc(100% - 32px);
  }

  .logo__en {
    display: none;
  }

  .nav {
    gap: 14px;
  }

  .nav a {
    font-size: 11px;
  }

  .hero {
    padding: 100px 20px 70px;
    min-height: 560px;
  }

  .hero::before {
    width: 700px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero__lead {
    font-size: 13px;
  }

  .tool-card {
    border-radius: 16px;
    padding: 25px;
  }

  .tool-card h3 {
    font-size: 25px;
  }

  .tool-card__catch {
    font-size: 18px;
  }

  .tool-card__description {
    font-size: 13px;
  }

  .tool-card__screen {
    width: 290px;
    height: 290px;
  }

  .about__content {
    font-size: 13px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 10px;
  }
}