/* ==========================================================================
   TOP page sections
   hero / simulation / how / docs / flow / feature / problem / voice / reason / compare / faq / contact
========================================================================== */

/* ----- hero.css ----- */

/* ==========================================================================
   Hero
========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 30px;
  background: top center / cover no-repeat url("../img/top/hero.webp");

  @media screen and (max-width: 767px) {
    padding: 0 0 24px;
    background-image: url("../img/top/hero_sp.webp");
  }
}

.hero .inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
}

.hero__visual {
  margin: 0 0 10px;

  @media screen and (max-width: 767px) {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.hero__visual-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;

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

.hero__btns .c-btn--img {
  width: min(100%, 350px);

  @media screen and (max-width: 767px) {
    width: 100%;
    max-width: 350px;
  }
}

/* ----- simulation.css ----- */

/* ==========================================================================
   Simulation
========================================================================== */

.simulation {
  background: var(--color-blue);
  color: var(--color-white);
  padding: 72px 0 80px;

  @media screen and (max-width: 767px) {
    padding: 48px 0 56px;
  }
}

.simulation .c-secHead__en {
  color: var(--color-white-55);
}

.simulation .c-secHead__title {
  color: var(--color-white);
}

.simulation .c-secHead__title::after {
  background: var(--color-white);
}

.simulation__form {
  max-width: 800px;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;

  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
    max-width: 384px;
    margin-inline: auto;
  }
}

.simulation__card {
  background: var(--color-white);
  border-radius: 3px;
  padding: 16px 30px;
  color: var(--color-text);
  box-shadow: var(--shadow-card);

  @media screen and (max-width: 767px) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 12px;
  }
}

.simulation__card-head {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 16px;
  min-height: 48px;

  @media screen and (max-width: 767px) {
    margin-bottom: 0;
    min-height: 0;
    gap: 8px;
  }
}

.simulation__card-step {
  display: grid;
  justify-items: center;
  align-self: center;
  margin-top: -6px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--color-orange);
}

.simulation__card-step span {
  color: var(--color-orange);
  font-family: var(--font-din);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;

  @media screen and (max-width: 400px) {
    font-size: calc(100vw * 14 / 400);
  }
}

.simulation__card-step strong {
  color: var(--color-orange);
  text-align: center;
  font-family: var(--font-din);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;

  @media screen and (max-width: 400px) {
    font-size: calc(100vw * 24 / 400);
  }
}

.simulation__card-divider {
  width: 1px;
  height: 58px;
  flex-shrink: 0;
  background: var(--color-border);
}

.simulation__card-title {
  flex: 1;
  align-self: center;
  color: #0342ab;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;

  @media screen and (max-width: 400px) {
    font-size: calc(100vw * 14 / 400);
  }
}

.simulation__card-body {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.simulation__field-input {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  padding: 0 12px;
  min-height: 42px;
  color: var(--color-text);

  @media screen and (max-width: 767px) {
    flex: none;
    width: 130px;
    height: 40px;
    min-height: 0;
  }

  @media screen and (max-width: 400px) {
    width: calc(100vw * 130 / 400);
    height: calc(100vw * 40 / 400);
    padding: 0 calc(100vw * 12 / 400);
  }
}

.simulation__field-input input,
.simulation__field-input select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  border-radius: 3px;
  font-size: 1.5rem;
  color: var(--color-text);
  appearance: none;
  -webkit-appearance: none;

  @media screen and (max-width: 400px) {
    font-size: calc(100vw * 15 / 400);
  }
}

.simulation__field-input input::placeholder {
  color: var(--color-text-placeholder);
}

.simulation__field-input--select {
  position: relative;
  padding-right: 32px;

  @media screen and (max-width: 767px) {
    width: 166px;
  }

  @media screen and (max-width: 400px) {
    width: calc(100vw * 166 / 400);
    padding-right: calc(100vw * 32 / 400);
  }
}

.simulation__field-input--select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-soft);
  border-bottom: 2px solid var(--color-text-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;

  @media screen and (max-width: 400px) {
    right: calc(100vw * 12 / 400);
    width: calc(100vw * 8 / 400);
    height: calc(100vw * 8 / 400);
  }
}

.simulation__unit {
  flex-shrink: 0;
  color: var(--color-text);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;

  @media screen and (max-width: 400px) {
    font-size: calc(100vw * 14 / 400);
  }
}

.simulation__note {
  display: none;
  margin-top: 8px;
  color: var(--color-orange);
  font-size: 1.2rem;
  line-height: 1.5;

  @media screen and (max-width: 767px) {
    flex-basis: 100%;
    margin-top: 0;
  }
}

.simulation__note.is-visible {
  display: block;
}

.simulation__radios {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.simulation__radio {
  display: inline-flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  cursor: pointer;

  @media screen and (max-width: 400px) {
    font-size: calc(100vw * 14 / 400);
  }
}

.simulation__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.simulation__radio-mark {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #b6b6b6;
  background: var(--color-white);
  flex-shrink: 0;
  transition:
    border-color var(--transition),
    border-width var(--transition);
}

.simulation__radio input:checked + .simulation__radio-mark {
  border: 3px solid var(--color-blue);
}

.simulation__result {
  display: none;
  margin-bottom: 28px;
}

.simulation__result-label {
  color: var(--color-main);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  margin: 0;
}

.simulation__result-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.12em;
  margin: 0;
}

.simulation__result-value > span:not(.simulation__result-sep) {
  color: #ef6723;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
}

.simulation__result-sep {
  color: var(--color-main);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  margin: 0 0.08em;
}

.simulation__result-value small {
  color: var(--color-main);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  margin-left: 0.2em;
}

/* 計算後：1行レイアウト（買取金額 285 〜 297 万円） */

.simulation__result.is-filled {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  width: fit-content;
  margin-inline: auto;
  background: var(--color-white);
  border-radius: 3px;
  padding: 10px 30px;
  text-align: center;
  margin-bottom: 10px;
}

.simulation__cta {
  display: flex;
  justify-content: center;
}

/* ----- how.css ----- */

/* ==========================================================================
   How it works
========================================================================== */

.how {
  padding: 60px 0;

  @media screen and (max-width: 767px) {
    padding: 50px 0;
  }
}

.how .c-secHead__lead {
  text-align: center;
}

.how__diagram {
  max-width: 590px;
  margin: 0 auto 44px;

  @media screen and (max-width: 767px) {
    max-width: 100%;
  }
}

.how__diagram-img {
  display: block;
  width: 100%;
  height: auto;
}

.how__note {
  padding: 26px 20px;
  border-radius: 4.5px;
  border: 1.5px solid var(--color-main);
  background: #fff;

  @media screen and (max-width: 767px) {
    padding: 14px 16px;
  }
}

.how__note-title {
  color: var(--color-main);
  text-align: center;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.6; /* 44.8px */
  letter-spacing: var(--letter-spacing);

  @media screen and (max-width: 767px) {
    font-size: 1.8rem;
  }
}

.how__note-title-sub {
  color: var(--color-text);
  font-weight: 500;
}

.how__note-text {
  margin-top: 20px;
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.6; /* 32px */
  letter-spacing: var(--letter-spacing);

  @media screen and (max-width: 767px) {
    font-size: 1.3rem; /* 20.8px */
    margin-top: 18px;
  }
}

/* ----- docs.css ----- */

/* ==========================================================================
   Documents
========================================================================== */

.docs {
  padding: 60px 0;
  position: relative;

  @media screen and (max-width: 767px) {
    padding: 56px 0;
  }
}

.docs__deco {
  top: 0;
  left: 0;
  width: calc(100% * 624 / 1400);

  @media screen and (max-width: 767px) {
    width: calc(100% * 350 / 414);
  }
}

.docs .inner {
  position: relative;
  z-index: 1;
}

.docs__box {
  max-width: 600px;
  margin-inline: auto;
  border: 2px solid var(--color-main);
  border-radius: 5px;
  background: #fff;
  padding: 20px 80px;
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 70px;
  align-items: center;

  @media screen and (max-width: 767px) {
    max-width: 400px;
    grid-template-columns: 84px 1fr;
    padding: 6px 20px;
    gap: 40px;
  }
}

.docs__thumb {
}

.docs__thumb-card {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e1e1e1;
}

.docs__title {
  color: var(--color-main);
  text-align: center;
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  margin-bottom: 4px;

  @media screen and (max-width: 767px) {
    font-size: 1.8rem;
  }
}

.docs__text {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);

  @media screen and (max-width: 767px) {
    font-size: 1.2rem;
  }
}

/* ----- flow.css ----- */

/* ==========================================================================
   Flow
========================================================================== */

.flow {
  padding: 0 0 60px;
  position: relative;

  @media screen and (max-width: 767px) {
    padding-bottom: 56px;
  }
}

.flow__deco-1 {
  top: -18%;
  right: 0;
  width: calc(100% * 532 / 1400);

  @media screen and (max-width: 767px) {
    top: 4%;
    width: calc(100% * 255 / 414);
  }
}

.flow__board {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 3px;
  border: 1px solid var(--color-main);
  background: #fff;
  padding: 40px;
}

.flow__diagram {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 860px;
  height: auto;
}

.flow__scroll-hint {
  display: none;
  flex-direction: column;
  gap: 0;
  color: var(--color-main);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  margin: 20px 0 0 auto;
  width: fit-content;

  @media screen and (max-width: 767px) {
    display: flex;
  }
}

.flow__scroll-arrow {
  display: block;
}

/* ----- feature.css ----- */

/* ==========================================================================
   Feature
========================================================================== */

.feature {
  position: relative;
}

.feature__deco-1 {
  top: -14%;
  left: 0;
  width: calc(100% * 209 / 1400);

  @media screen and (max-width: 767px) {
    top: -4%;
    width: calc(100% * 54.5 / 414);
  }
}

.feature__deco-2 {
  top: 16%;
  right: 0;
  width: calc(100% * 1176 / 1400);

  @media screen and (max-width: 767px) {
    top: 6%;
    width: calc(100% * 355.5 / 414);
  }
}

.feature__list {
  display: block;
  max-width: 1028px;
  margin: 0 auto 64px;

  @media screen and (max-width: 767px) {
    margin-bottom: 40px;
  }
}

.feature__card {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- problem.css ----- */

/* ==========================================================================
   Problem
========================================================================== */

.problem {
  padding: 80px 0 0;
  background: #ededed;

  @media screen and (max-width: 767px) {
    padding-top: 56px;
  }
}

.problem__list {
  display: block;
  margin: 0 auto 40px;

  @media screen and (max-width: 767px) {
    margin-bottom: 40px;
  }
}

.problem__card {
  display: block;
  width: 100%;
  height: auto;
}

.problem__solve {
  background: linear-gradient(297deg, #0342ab 0%, #035dab 100%);
  color: var(--color-white);
  text-align: center;
  padding: 101px 20px 64px;
  clip-path: polygon(0 0, 50% 14%, 100% 0, 100% 100%, 0 100%);

  @media screen and (max-width: 767px) {
    clip-path: polygon(0 0, 50% 6%, 100% 0, 100% 100%, 0 100%);
    padding: 48px 16px 48px;
  }
}

.problem__solve-title {
  font-weight: 700;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.problem__solve-lead {
  display: block;
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);

  @media screen and (max-width: 767px) {
    font-size: 2.4rem;
  }

  @media screen and (max-width: 414px) {
    font-size: calc(100vw * 24 / 414);
  }
}

.problem__solve-sub {
  display: block;
  color: #fff;
  text-align: center;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: var(--letter-spacing);
  margin: 0 0 22px;

  @media screen and (max-width: 767px) {
    font-size: 1.7rem;
  }

  @media screen and (max-width: 414px) {
    font-size: calc(100vw * 17 / 414);
  }
}

.problem__solve-strong {
  display: inline;
  color: #fff;
  text-align: center;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: var(--letter-spacing);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--color-white-70);

  @media screen and (max-width: 767px) {
    font-size: 2.2rem;
  }

  @media screen and (max-width: 414px) {
    font-size: calc(100vw * 22 / 414);
  }
}

/* ----- voice.css ----- */

/* ==========================================================================
   Voice / Customer Story
========================================================================== */

.voice {
  padding: 80px 0;
  position: relative;

  @media screen and (max-width: 767px) {
    padding: 56px 0;
  }
}

.voice__deco-1 {
  top: 0;
  left: 0;
  width: 100%;

  @media screen and (max-width: 767px) {
    width: calc(100% * 353 / 414);
  }
}

.voice__deco-2 {
  bottom: 0;
  right: 0;
  width: calc(100% * 532 / 1400);

  @media screen and (max-width: 767px) {
    width: calc(100% * 254.5 / 414);
  }
}

.voice .inner {
  position: relative;
  z-index: 1;
}

.voice__list {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.voice__card {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- reason.css ----- */

/* ==========================================================================
   Reason
========================================================================== */

.reason {
  padding: 0 0 70px;

  @media screen and (max-width: 767px) {
    padding-top: 50px;
    padding-bottom: 56px;
  }
}

.reason__list {
  display: flex;
  flex-direction: column;
  gap: 30px;

  @media screen and (max-width: 767px) {
    gap: 16px;
  }
}

.reason__box {
  border-radius: 3px;
  background: var(--color-sub);
  padding: 22px 48px 32px;

  @media screen and (max-width: 767px) {
    padding: 28px 16px 20px;
  }
}

.reason__q {
  color: var(--color-blue);
  text-align: center;
  margin: 0 0 30px;
  line-height: 1.5;

  @media screen and (max-width: 767px) {
    margin-bottom: 18px;
  }
}

.reason__q-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  margin-bottom: 4px;

  @media screen and (max-width: 767px) {
    font-size: 2rem;
  }
}

.reason__q-text {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);

  @media screen and (max-width: 767px) {
    font-size: 2rem;
  }
}

.reason__answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;

  @media screen and (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.reason__answer {
  background: var(--color-white);
  border-radius: 3px;
  padding: 6px 24px;
  min-height: 84px;
  display: flex;
  align-items: center;

  @media screen and (max-width: 767px) {
    padding: 14px 12px;
    min-height: auto;
  }
}

.reason__answer-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.reason__answer-text {
  flex: 1;
  min-width: 0;
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing);

  @media screen and (max-width: 767px) {
    font-size: 1.5rem;
  }
}

.reason__check {
  width: 20px;
  height: 20px;
  margin-top: 5px;
  flex-shrink: 0;

  @media screen and (max-width: 767px) {
    width: 16px;
    height: 16px;
  }
}

/* ----- compare.css ----- */

/* ==========================================================================
   Compare
========================================================================== */

.compare {
  padding: 0 0 70px;

  @media screen and (max-width: 767px) {
    padding-bottom: 56px;
  }
}

.compare__scroll-hint {
  display: none;
  color: var(--color-text);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: var(--letter-spacing);
  margin-bottom: 1.2rem;

  @media screen and (max-width: 767px) {
    display: block;
  }
}

.compare .inner {
  @media screen and (max-width: 767px) {
    padding-right: 0;
  }
}

.compare__board {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  @media screen and (max-width: 767px) {
    display: flex;
    width: calc(100% + 15px);
    max-width: none;
    margin-left: -15px;
    margin-right: 0;

    &::before,
    &::after {
      content: "";
      flex-shrink: 0;
      width: 15px;
    }
  }
}

.compare__table {
  display: block;
  width: 764px;
  max-width: none;
  height: auto;
  margin: 0 auto;

  @media screen and (max-width: 767px) {
    flex-shrink: 0;
    width: 530px;
    margin: 0;
  }
}

/* ----- faq.css ----- */

/* ==========================================================================
   FAQ
========================================================================== */

.faq {
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;

  @media screen and (max-width: 767px) {
    padding-top: 56px;
  }
}

.faq__deco-1 {
  top: 24%;
  left: 0;
  width: calc(100% * 256 / 1400);

  @media screen and (max-width: 767px) {
    top: 6%;
    width: calc(100% * 115.5 / 414);
  }
}

.faq__deco-2 {
  top: 11%;
  right: 0;
  width: calc(100% * 1133 / 1400);

  @media screen and (max-width: 767px) {
    top: 6%;
    width: calc(100% * 262.5 / 414);
  }
}

.faq .inner {
  position: relative;
  z-index: 1;
}

.faq__list {
  display: grid;
  gap: 14px;
  max-width: 800px;
  margin: 0 auto 64px;

  @media screen and (max-width: 767px) {
    margin-bottom: 40px;
  }
}

.faq__item {
  background: var(--color-white);
}

.faq__question {
  width: 100%;
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr) 20px;
  align-items: start;
  padding: 24px 20px;
  text-align: left;
  background: var(--color-sub);
  line-height: 1.6;

  @media screen and (max-width: 767px) {
    grid-template-columns: 2.4rem minmax(0, 1fr) 18px;
    gap: 0 6px;
    padding: 14px 14px;
  }
}

.faq__label {
  color: var(--color-blue);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
}

.faq__text {
  color: var(--color-text);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
}

.faq__icon {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex-shrink: 0;
  transition: transform 0.35s ease;
  position: relative;
}

.faq__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-blue);
  border-bottom: 2px solid var(--color-blue);
  transform: rotate(45deg) translate(-1px, -3px);
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  height: 0;
  overflow: hidden;
  border-right: 1px solid #e9ecf4;
  border-bottom: 1px solid #e9ecf4;
  border-left: 1px solid #e9ecf4;
  background: #fff;
  transition: height 0.35s ease;
}

.faq__answer-inner {
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0 8px;
  padding: 16px 48px 18px 20px;

  @media screen and (max-width: 767px) {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0 6px;
    padding: 14px 38px 16px 14px;
  }
}

.faq__answer .faq__text {
  font-weight: 400;
}
