/* /first のヘッダーは style.css の共通ヘッダーを使う。ここはファーストビューだけ。 */

.first-page {
  background: #ffffff;
  color: #1E3A5F;
}

.first-page .header {
  background-color: transparent;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 100%);
  box-shadow: none;
  border-bottom: none;
  transition:
    background-color 0.4s ease,
    background-image 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.first-page.is-past-hero .header {
  background-color: #ffffff;
  background-image: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(30, 58, 95, 0.08);
}

.first-page .first-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #f6f4f1;
}

.first-page .first-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 28% center;
}

.first-page .first-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 42%,
    rgba(255, 255, 255, 0.12) 56%,
    rgba(255, 255, 255, 0.48) 72%,
    rgba(255, 255, 255, 0.82) 86%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

.first-page .first-hero-copy {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: max-content;
  max-width: calc(100% - 8%);
  height: 100%;
  margin-left: auto;
  margin-right: 4%;
  padding: 90px 0 56px 0;
}

.first-page .first-hero-title {
  margin: 0 0 22px;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  line-height: 1.55;
  letter-spacing: 0.06em;
  color: #1E3A5F;
}

.first-page .first-hero-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 2.5px;
  margin-top: 22px;
  background: #c0a062;
}

.first-page .first-hero-service {
  margin: 0 0 14px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.7;
  color: #1E3A5F;
}

.first-page .first-hero-note {
  margin: 0 0 32px;
  max-width: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #1E3A5F;
}

.first-page .first-hero-note-pc {
  white-space: nowrap;
}

.first-page .first-hero-note-sp {
  display: none;
}

.first-page .first-hero-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid #1E3A5F;
  border-radius: 40px;
  background: #1E3A5F;
  color: #ffffff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .first-page .first-hero-line:hover {
    background: #ffffff;
    color: #1E3A5F;
    border-color: #c0a062;
  }
}

@media (min-width: 769px) {
  .first-page .first-hero-line {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .first-page .first-hero {
    --first-photo-h: clamp(280px, 50svh, 420px);
    height: auto;
    min-height: 0;
  }

  .first-page .first-hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: var(--first-photo-h);
    object-position: 32% 18%;
  }

  .first-page .first-hero::after {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--first-photo-h);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(255, 255, 255, 0) 16%,
      rgba(255, 255, 255, 0) 64%,
      rgba(255, 255, 255, 0.55) 84%,
      #ffffff 100%
    );
  }

  .first-page .first-hero-copy {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 20px 22px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f4f1 100%);
  }

  .first-page .first-hero-title {
    position: absolute;
    z-index: 2;
    top: calc(max(92px, var(--first-photo-h) * 0.34) - var(--first-photo-h));
    right: 18px;
    left: auto;
    width: min(12.4rem, 56%);
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.5;
    letter-spacing: 0.03em;
  }

  .first-page .first-hero-title::after {
    margin-top: 12px;
  }

  .first-page .first-hero-service,
  .first-page .first-hero-note {
    font-size: 0.86rem;
  }

  .first-page .first-hero-service {
    margin-bottom: 12px;
    letter-spacing: 0.06em;
  }

  .first-page .first-hero-note {
    margin-bottom: 22px;
    line-height: 1.85;
  }

  .first-page .first-hero-note-pc {
    display: inline;
    white-space: normal;
  }

  .first-page .first-hero-note-sp {
    display: none;
  }

  .first-page .first-hero-line {
    align-self: flex-end;
    min-height: 48px;
    margin-top: 2px;
  }
}

/* FV直下。初めての方への案内。 */
.first-page .first-intro {
  background: #ffffff;
  padding: 96px 8% 104px;
}

.first-page .first-intro-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.first-page .first-intro-en,
.first-page .first-approach-en,
.first-page .first-guide-en,
.first-page .first-area-en,
.first-page .first-flow-en,
.first-page .first-next-en,
.first-page .first-next-benefit-en {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: #c0a062;
}

.first-page .first-intro-title,
.first-page .first-approach-title,
.first-page .first-guide-title,
.first-page .first-area-title,
.first-page .first-flow-title,
.first-page .first-next-title {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: #1E3A5F;
}

.first-page .first-intro-title::after,
.first-page .first-approach-title::after,
.first-page .first-guide-title::after,
.first-page .first-area-title::after,
.first-page .first-flow-title::after,
.first-page .first-next-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 2.5px;
  margin-top: 18px;
  background: #c0a062;
}

.first-page .first-intro-body,
.first-page .first-approach-body,
.first-page .first-next-body {
  max-width: 36em;
  margin-top: 28px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #1E3A5F;
}

.first-page .first-intro-body p:first-child,
.first-page .first-approach-body p:first-child {
  font-weight: 500;
}

.first-page .first-intro-body p + p,
.first-page .first-approach-body p + p,
.first-page .first-next-body p + p {
  margin-top: 1.15em;
}

.first-page .first-approach {
  background: #fafafa;
  padding: 96px 8% 104px;
}

.first-page .first-approach-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.first-page .first-approach-title::after {
  margin-right: auto;
  margin-left: auto;
}

.first-page .first-approach-body {
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.first-page .first-intro-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #f6f4f1;
}

.first-page .first-intro-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.first-page .first-guide {
  background: #ffffff;
  padding: 96px 8% 104px;
}

.first-page .first-guide-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.first-page .first-guide-title::after {
  margin-right: auto;
  margin-left: auto;
}

.first-page .first-guide-lead,
.first-page .first-area-lead {
  max-width: 36em;
  margin: 28px 0 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #1E3A5F;
}

.first-page .first-guide-lead {
  width: fit-content;
  max-width: min(36em, 100%);
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.first-page .first-guide-more {
  margin-top: 22px;
}

.first-page .first-guide-list {
  max-width: calc(22rem * 2 + 48px);
  margin: 64px auto 0;
}

.first-page .first-guide-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: left;
}

.first-page .first-guide-item--reverse {
  flex-direction: row-reverse;
}

.first-page .first-guide-photo,
.first-page .first-guide-copy {
  flex: 0 1 22rem;
  width: 22rem;
  max-width: 100%;
  min-width: 0;
}

.first-page .first-guide-item + .first-guide-item {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(192, 160, 98, 0.85);
}

.first-page .first-guide-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
  background: #f6f4f1;
}

.first-page .first-guide-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.first-page .first-guide-name {
  margin: 0 0 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #1E3A5F;
}

.first-page .first-guide-text {
  margin: 0;
  max-width: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #1E3A5F;
}

.first-page .first-guide-links,
.first-page .first-area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.first-page .first-guide-more,
.first-page .first-guide-links a,
.first-page .first-area-links a,
.first-page .first-next-line {
  display: inline-flex;
  align-items: flex-end;
  box-sizing: border-box;
  min-height: 44px;
  padding-bottom: 4px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: #1E3A5F;
  text-decoration: none;
  border-bottom: 1px solid #c0a062;
}

.first-page .first-area {
  background: #fafafa;
  padding: 96px 8% 104px;
}

.first-page .first-area-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.first-page .first-area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 80px;
  margin-top: 64px;
}

.first-page .first-area-photo {
  margin: 0 0 22px;
}

.first-page .first-area-photo:not(:has(img)) {
  display: none;
}

.first-page .first-area-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 10px;
}

.first-page .first-area-place {
  margin: 0 0 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
  color: #c0a062;
}

.first-page .first-area-name {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #1E3A5F;
}

.first-page .first-area-text {
  margin: 12px 0 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: #1E3A5F;
}

.first-page .first-flow {
  background: transparent;
  padding: 96px 8% 104px;
}

.first-page .first-flow-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.first-page .first-flow-en,
.first-page .first-flow-title {
  text-align: center;
}

.first-page .first-flow-title::after {
  margin-right: auto;
  margin-left: auto;
}

.first-page .first-flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 36px;
  list-style: none;
  max-width: none;
  margin: 56px 0 0;
  padding: 0;
}

.first-page .first-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 0;
  padding: 0;
  text-align: center;
}

.first-page .first-flow-step:last-child {
  padding-bottom: 0;
}

.first-page .first-flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  right: auto;
  bottom: auto;
  left: calc(50% + 1.45rem);
  width: calc(100% + 36px - 2.9rem);
  height: 1px;
  background: rgba(192, 160, 98, 0.85);
}

.first-page .first-flow-copy {
  min-width: 0;
  max-width: 100%;
}

.first-page .first-flow-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: #c0a062;
}

.first-page .first-flow-num span {
  margin-bottom: 4px;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.first-page .first-flow-name {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: #1E3A5F;
}

.first-page .first-flow-text {
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.04em;
  color: #1E3A5F;
  text-align: left;
}

.first-page .first-next {
  background: #fafafa;
  padding: 96px 8% 104px;
}

.first-page .first-next-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.first-page .first-next-title::after {
  margin-right: auto;
  margin-left: auto;
}

.first-page .first-next-body {
  width: fit-content;
  max-width: min(36em, 100%);
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.first-page .first-next-benefit {
  max-width: 36em;
  margin: 40px auto 0;
  padding: 28px 0 24px;
  border-top: 1px solid rgba(192, 160, 98, 0.85);
  border-bottom: 1px solid rgba(192, 160, 98, 0.85);
}

.first-page .first-next-benefit-en {
  margin-bottom: 12px;
}

.first-page .first-next-benefit-title {
  margin: 0;
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: #1E3A5F;
}

.first-page .first-next-benefit-off {
  display: inline-block;
  margin-left: 0.2em;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #c0a062;
}

.first-page .first-next-benefit-lead {
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  text-align: left;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: #1E3A5F;
}

.first-page .first-next-benefit-note {
  width: fit-content;
  max-width: 100%;
  margin: 10px auto 0;
  text-align: left;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.9;
  color: #1E3A5F;
}

.first-page .first-next-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.first-page .first-next-consult,
.first-page .first-next-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 40px;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.first-page .first-next-consult {
  background: #1E3A5F;
  color: #ffffff;
  border: 1px solid #1E3A5F;
}

.first-page .first-next-book {
  background: #ffffff;
  color: #1E3A5F;
  border: 1px solid #c0a062;
}

.first-page .first-next-line {
  margin-top: 20px;
}

@media (hover: hover) {
  .first-page .first-next-consult:hover {
    background: #ffffff;
    color: #1E3A5F;
    border-color: #c0a062;
  }

  .first-page .first-next-book:hover {
    background: #ffffff;
    color: #1E3A5F;
    border-color: #1E3A5F;
  }
}

@media (hover: hover) {
  .first-page .first-guide-more:hover,
  .first-page .first-guide-links a:hover,
  .first-page .first-area-links a:hover,
  .first-page .first-next-line:hover {
    color: #8fa3c1;
  }
}

@media (max-width: 768px) {
  .first-page .first-intro {
    padding: 64px 22px 72px;
  }

  .first-page .first-intro-title,
  .first-page .first-approach-title,
  .first-page .first-guide-title,
  .first-page .first-area-title,
  .first-page .first-flow-title,
  .first-page .first-next-title {
    font-size: 1.35rem;
  }

  .first-page .first-approach-title,
  .first-page .first-guide-title,
  .first-page .first-flow-title,
  .first-page .first-next-title {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .first-page .first-intro-body,
  .first-page .first-approach-body,
  .first-page .first-next-body {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .first-page .first-approach {
    padding: 64px 22px 72px;
  }

  .first-page .first-guide {
    padding: 64px 22px 72px;
  }

  .first-page .first-guide-lead,
  .first-page .first-area-lead,
  .first-page .first-area-text,
  .first-page .first-flow-text,
  .first-page .first-guide-text {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .first-page .first-guide-list {
    margin-top: 40px;
  }

  .first-page .first-area {
    padding: 64px 22px 72px;
  }

  .first-page .first-area-list {
    gap: 40px 32px;
    margin-top: 40px;
  }

  .first-page .first-flow {
    padding: 64px 22px 72px;
  }

  .first-page .first-flow-list {
    display: block;
    max-width: 40rem;
    margin-top: 40px;
  }

  .first-page .first-flow-step {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 0 0 32px;
    text-align: left;
  }

  .first-page .first-flow-step:not(:last-child)::before {
    top: 2.55rem;
    right: auto;
    bottom: 8px;
    left: 1.625rem;
    width: 1px;
    height: auto;
  }

  .first-page .first-next {
    padding: 64px 22px 72px;
  }

  .first-page .first-next-benefit {
    margin-top: 32px;
    padding: 22px 0 18px;
  }

  .first-page .first-next-benefit-off {
    font-size: 1.45rem;
  }

  .first-page .first-next-benefit-lead,
  .first-page .first-next-benefit-note {
    font-size: 0.9rem;
    line-height: 1.9;
  }

  .first-page .first-next-actions {
    gap: 12px;
  }

  .first-page .first-next-consult,
  .first-page .first-next-book {
    flex: 1 1 140px;
  }
}

@media (max-width: 640px) {
  .first-page .first-intro-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .first-page .first-intro-photo {
    aspect-ratio: 16 / 10;
  }

  .first-page .first-guide-item,
  .first-page .first-guide-item--reverse {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
  }

  .first-page .first-guide-photo,
  .first-page .first-guide-copy {
    flex-basis: auto;
    width: 100%;
  }

  .first-page .first-guide-item + .first-guide-item {
    margin-top: 28px;
    padding-top: 28px;
  }

  .first-page .first-area-en,
  .first-page .first-area-title {
    text-align: center;
  }

  .first-page .first-area-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .first-page .first-guide-links,
  .first-page .first-area-links {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  .first-page .first-guide-links a,
  .first-page .first-area-links a {
    text-align: center;
    justify-content: center;
  }

  .first-page .first-area-list {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}
