/* ==========================================================
   初めての方へ（first__）
   ※ 色はすべて css/common.css の :root 変数を使用
   ※ 見出し・ボタン・フェードなどの共通部品は common__ を使う
   ========================================================== */

/* 固定ヘッダーの高さぶん、上を空ける */
/* ※ css/wp_fullwidth.css が main の上余白を消す（!important）ため、同じ強さ以上のセレクタで固定ヘッダー分を確保する */
body.axcel-page main.first {
  padding-top: 80px !important;
}
@media (max-width: 767px) {
  body.axcel-page main.first {
    padding-top: 60px !important;
  }
}

/* ---------- ページ見出し ---------- */
.first__hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 88px;
  background: var(--color-brand-pale);
}
@media (max-width: 767px) {
  .first__hero {
    padding-block: 24px 56px;
  }
}

.first__hero-bg {
  position: absolute;
  inset: 0;
  display: block;
}

.first__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 花の写真の上でも文字が読めるよう、やわらかく白を重ねる */
.first__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-overlay-white);
}

.first__hero-inner {
  position: relative;
  z-index: 2;
}

/* パンくず */
.first__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 56px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
}
@media (max-width: 767px) {
  .first__crumb {
    margin-bottom: 36px;
    font-size: 11px;
  }
}

.first__crumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
}

.first__crumb-link {
  transition: color 0.3s ease;
}
.first__crumb-link:hover {
  color: var(--color-brand);
}

.first__title {
  margin: 0;
  text-align: center;
}

.first__title-en {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: var(--color-brand);
}
@media (max-width: 767px) {
  .first__title-en {
    margin-bottom: 10px;
    font-size: 13px;
  }
}

.first__title-ja {
  display: block;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .first__title-ja {
    font-size: 24px;
  }
}

.first__lead-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
@media (max-width: 767px) {
  .first__lead-wrap {
    margin-top: 24px;
  }
}

.first__lead {
  text-wrap: pretty;
  margin: 0;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  text-align: start;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .first__lead {
    font-size: 14px;
    line-height: 1.95;
  }
}

/* ---------- 説明文（PREPARED / SUPPORT 共通） ---------- */
.first__text-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}
@media (max-width: 767px) {
  .first__text-wrap {
    margin-bottom: 40px;
  }
}

.first__text {
  max-width: 720px;
}

.first__text-p {
  text-wrap: pretty;
  margin: 0;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  text-align: start;
  color: var(--color-text-sub);
}
@media (max-width: 767px) {
  .first__text-p {
    font-size: 14px;
    line-height: 1.95;
  }
}

.first__text-p + .first__text-p {
  margin-top: 1.4em;
}

/* ---------- いざという時に困らないために ---------- */
.first__prepared {
  background: var(--color-white);
}

.first__prepared-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  .first__prepared-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.first__prepared-item {
  overflow: hidden;
  padding-bottom: 32px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 6px 24px var(--color-card-shadow);
}
@media (max-width: 767px) {
  .first__prepared-item {
    padding-bottom: 24px;
  }
}

.first__prepared-figure {
  margin: 0 0 28px;
}
@media (max-width: 767px) {
  .first__prepared-figure {
    margin-bottom: 20px;
  }
}

.first__prepared-img {
  display: block;
  width: 100%;
  aspect-ratio: 294 / 203;
  object-fit: cover;
}

.first__prepared-title {
  margin: 0 28px 12px;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--color-brand);
}
@media (max-width: 767px) {
  .first__prepared-title {
    margin-inline: 20px;
    font-size: 18px;
  }
}

.first__prepared-text {
  text-wrap: pretty;
  margin: 0 28px;
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.05em;
  text-align: start;
  color: var(--color-text-sub);
}
@media (max-width: 767px) {
  .first__prepared-text {
    margin-inline: 20px;
  }
}

/* ---------- 事前相談までの流れ ---------- */
.first__flow {
  background: var(--color-brand-pale);
}

.first__flow-list {
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  .first__flow-list {
    gap: 40px;
  }
}

.first__flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 48px;
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 6px 24px var(--color-card-shadow);
}
@media (max-width: 767px) {
  .first__flow-item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 20px 24px;
  }
}

/* 画像を左右交互にする（PCのみ） */
@media (min-width: 768px) {
  .first__flow-item:nth-child(even) .first__flow-figure {
    order: -1;
  }
}

/* ステップ同士をつなぐ矢印 */
.first__flow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--color-brand);
  border-bottom: 1px solid var(--color-brand);
  transform: translateX(-50%) rotate(45deg);
}
@media (max-width: 767px) {
  .first__flow-item:not(:last-child)::after {
    bottom: -28px;
    width: 12px;
    height: 12px;
  }
}

.first__flow-num {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-brand-soft);
}
@media (max-width: 767px) {
  .first__flow-num {
    font-size: 44px;
  }
}

.first__flow-num-label {
  margin-right: 12px;
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.24em;
  color: var(--color-brand);
}
@media (max-width: 767px) {
  .first__flow-num-label {
    font-size: 13px;
  }
}

.first__flow-title {
  margin: 0 0 16px;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.1em;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .first__flow-title {
    margin-bottom: 12px;
    font-size: 21px;
  }
}

.first__flow-text {
  text-wrap: pretty;
  margin: 0;
  font-size: 15px;
  line-height: 2.05;
  letter-spacing: 0.05em;
  text-align: start;
  color: var(--color-text-sub);
}
@media (max-width: 767px) {
  .first__flow-text {
    font-size: 14px;
    line-height: 1.95;
  }
}

.first__flow-figure {
  margin: 0;
}

.first__flow-img {
  display: block;
  width: 100%;
  aspect-ratio: 299 / 203;
  object-fit: cover;
  border-radius: 12px;
}

/* メールでお問い合わせ */
.first__flow-mail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px 32px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--color-brand), var(--color-brand-dark));
  color: var(--color-white);
  transition: filter 0.3s ease;
}
.first__flow-mail:hover {
  filter: brightness(0.92);
}
@media (max-width: 767px) {
  .first__flow-mail {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding: 14px 20px;
  }
}

.first__flow-mail-icon {
  flex-shrink: 0;
  width: 30px;
  height: auto;
}

.first__flow-mail-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.4;
}

.first__flow-mail-note {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.first__flow-mail-text {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
@media (max-width: 767px) {
  .first__flow-mail-text {
    font-size: 16px;
  }
}

/* ---------- アクセル社の安心サポート ---------- */
.first__support {
  background: var(--color-white);
}

.first__support-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  .first__support-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.first__support-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 6px 24px var(--color-card-shadow);
}

.first__support-figure {
  margin: 0;
}

.first__support-img {
  display: block;
  width: 100%;
  aspect-ratio: 354 / 221;
  object-fit: cover;
}

.first__support-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 28px 24px 32px;
}
@media (max-width: 767px) {
  .first__support-body {
    gap: 20px;
    padding: 24px 20px 28px;
  }
}

.first__support-title {
  margin: 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .first__support-title {
    font-size: 18px;
  }
}

.first__support-highlight {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--color-brand);
}

.first__support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 200px;
  margin-top: auto;
  padding: 12px 28px;
  border: 1px solid var(--color-brand);
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.first__support-link:hover {
  background: var(--color-brand);
  color: var(--color-white);
}
.first__support-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
