@charset "UTF-8";

@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;600;700&family=Unbounded:wght@400;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  --consult-navy: #232b56;
  --consult-gold: #c8b687;
  --consult-serif: "Shippori Mincho", "Noto Serif JP", serif;
  --consult-sans: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

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

html { overflow-x: hidden; }

body {
  overflow-x: hidden;
  color: var(--consult-navy);
  font-family: var(--consult-sans);
}

.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

.consult-page-hero {
  position: relative;
  height: 353px;
  background: rgba(3, 12, 61, .1);
}

.consult-page-hero__heading {
  position: absolute;
  top: 176px;
  left: max(40px, calc((100% - 1290px) / 2));
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.consult-page-hero__heading h1 {
  font-family: "Unbounded", var(--consult-sans);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 3.2px;
}

.consult-page-hero__heading p {
  color: var(--consult-gold);
  font-family: var(--consult-serif);
  font-size: 16px;
  font-weight: 700;
}

.consult-page-hero__breadcrumb {
  position: absolute;
  top: 180px;
  right: max(40px, calc((100% - 1290px) / 2));
  font-family: var(--consult-serif);
  font-size: 14px;
  line-height: 50px;
}

.consult-page-hero__breadcrumb a { color: inherit; }

.consult-lead {
  height: 451px;
  padding-top: 116px;
  text-align: center;
}

.consult-lead h2 {
  font-family: var(--consult-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
}

.consult-lead p {
  margin-top: 19px;
  font-size: 14px;
  line-height: 2.5;
}

.consult-recommend {
  width: min(1290px, calc(100% - 80px));
  height: 450px;
  margin: 0 auto;
  padding-top: 63px;
  background: #e6e7ec;
}

.consult-recommend h2 {
  font-family: var(--consult-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
}

.consult-recommend ul {
  width: max-content;
  margin: 26px auto 0;
}

.consult-recommend li {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  font-size: 18px;
  line-height: 1.5;
}

.consult-recommend li img {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.consult-flow {
  height: 1458px;
  padding-top: 107px;
}

.consult-flow__inner {
  display: grid;
  width: min(1290px, calc(100% - 80px));
  grid-template-columns: 350px 1fr;
  margin: 0 auto;
}

.consult-flow__inner > h2 {
  font-family: var(--consult-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 1.92px;
  text-align: right;
}

.consult-flow__timeline {
  position: relative;
  width: 558px;
  margin-left: 182px;
}

.consult-flow__line {
  position: absolute;
  top: 23px;
  left: -39px;
  width: 1px;
  height: 1054.5px;
}

.consult-flow ol {
  display: flex;
  flex-direction: column;
  gap: 50px;
  list-style: none;
}

.consult-flow li {
  position: relative;
  min-height: 156px;
}

.consult-flow__dot {
  position: absolute;
  top: 21px;
  left: -45px;
  width: 12px;
  height: 12px;
}

.consult-flow h3 {
  font-family: var(--consult-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 54px;
}

.consult-flow li p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 2;
}

.consult-flow__marker {
  position: absolute;
  top: 1067px;
  left: -44px;
  width: 11px;
  height: 39.31px;
}

@media (max-width: 1199px) {
  .consult-flow__inner { grid-template-columns: minmax(190px, 32%) 1fr; }
  .consult-flow__timeline { width: auto; margin-left: 60px; margin-right: 20px; }
}

@media (max-width: 767px) {
  .consult-page-hero { height: 260px; }

  .consult-page-hero__heading {
    top: 118px;
    left: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .consult-page-hero__heading h1 {
    max-width: calc(100vw - 48px);
    font-size: 26px;
    letter-spacing: 1.5px;
  }

  .consult-page-hero__heading p { font-size: 14px; }

  .consult-page-hero__breadcrumb {
    top: auto;
    right: 24px;
    bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
  }

  .consult-lead {
    height: auto;
    padding: 75px 24px 70px;
  }

  .consult-lead h2 {
    font-size: 24px;
    line-height: 1.55;
  }

  .consult-lead p {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.9;
  }

  .consult-lead p br { display: none; }

  .consult-recommend {
    width: calc(100% - 48px);
    height: auto;
    padding: 50px 22px;
  }

  .consult-recommend h2 {
    font-size: 21px;
    line-height: 1.5;
  }

  .consult-recommend ul {
    width: 100%;
    margin-top: 26px;
  }

  .consult-recommend li {
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    margin-top: 17px;
    font-size: 14px;
    line-height: 1.7;
  }

  .consult-recommend li:first-child { margin-top: 0; }
  .consult-recommend li img { margin-top: 4px; }

  .consult-flow {
    height: auto;
    padding: 80px 24px 100px;
  }

  .consult-flow__inner {
    display: block;
    width: 100%;
  }

  .consult-flow__inner > h2 {
    font-size: 22px;
    letter-spacing: 1px;
    text-align: left;
  }

  .consult-flow__timeline {
    width: auto;
    margin: 50px 0 0 30px;
  }

  .consult-flow__line {
    top: 22px;
    bottom: 22px;
    left: -20px;
    width: 1px;
    height: 97.5%;
  }

  .consult-flow ol { gap: 48px; }

  .consult-flow li { min-height: 0; }

  .consult-flow__dot {
    top: 19px;
    left: -26px;
  }

  .consult-flow h3 {
    font-size: 20px;
    line-height: 48px;
  }

  .consult-flow li p {
    margin-top: 8px;
    font-size: 14px;
  }

  .consult-flow li p br { display: none; }

  .consult-flow__marker {
    top: auto;
    bottom: -20px;
    left: -24px;
  }

  .consult-flow__marker {
    width: 8px;
  }

  .footer__brand p,
  .footer nav { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; }
}
