/* TENTIAL Conditioning Advisory（コンディショニング相談窓口）LP
   Figma: PC 902:2568 / SP 902:2838 */
.adv {
  color: #111;
}
.adv-br-sp {
  display: none;
}

/* ---------- 共通 ---------- */
.adv-label {
  margin-top: 75px;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.5;
}
.adv-h2 {
  margin-top: 76px;
  font-size: clamp(2.4rem, 1.56vw, 3rem);
  font-weight: 500;
  line-height: 1.73;
}
.adv-h3 {
  font-size: clamp(2.4rem, 1.56vw, 3rem);
  font-weight: 500;
  line-height: 1.73;
}
.adv-text {
  font-size: 1.6rem;
  line-height: 2.18;
}
.adv-block > .l-container::before {
  content: '';
  display: block;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.adv img {
  display: block;
  max-width: 100%;
  height: auto; /* width/height 属性で比率が崩れないように */
}
.adv-intro__img img,
.adv-experts__img img,
.adv-process__img img {
  width: 100%; /* 列いっぱいに広げる（タブレットで画像が左に寄らないように） */
}
.adv .c-mv__img {
  height: 100%; /* ヒーローは画面の高さいっぱいに表示（c-mv の指定を優先） */
}

/* ---------- ヒーロー（既存の c-mv を流用） ---------- */
.adv-mv .c-mv__heading {
  padding-bottom: 142px;
}
.adv-mv .c-mv__subtitle {
  margin-bottom: 14px;
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.5;
}
.adv-mv .c-mv__title {
  font-size: 7.38rem;
  letter-spacing: -1.68px;
  line-height: 84px;
}

/* ---------- 導入 ---------- */
.adv-intro {
  padding-top: 200px;
}
.adv-intro__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.adv-intro__body {
  flex: 0 0 42.47%;
  min-width: 0;
  max-width: 620px;
}
.adv-intro__img {
  flex: 0 0 50%;
}
.adv-lead {
  font-size: clamp(2.4rem, 1.56vw, 3rem);
  font-weight: 500;
  line-height: 1.73;
}
.adv-intro .adv-text {
  margin-top: 21px;
}
.adv-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 630px;
  height: 90px;
  margin-top: 38px;
  padding: 0 22px 0 30px;
  background: #fff;
  font-size: 1.59rem;
  font-weight: 500;
}
.adv-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease;
}
.adv-cta:hover .adv-cta__icon {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

/* ---------- お困りごと ---------- */
.adv-issues {
  margin-top: 123px;
  padding-bottom: 64px;
}
.adv-issues__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 94px;
  margin-top: 50px;
}
.adv-issue__img {
  width: 100%;
  aspect-ratio: 715 / 352;
  object-fit: cover;
}
.adv-issue .adv-h3 {
  margin-top: 20px;
}
.adv-issue .adv-text {
  margin-top: 10px;
}

/* ---------- 専門家 ---------- */
.adv-experts {
  padding-bottom: 135px;
}
.adv-experts__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 133px;
}
.adv-experts__img {
  flex: 0 0 50%;
}
.adv-experts__body {
  flex: 0 0 44.5%;
  min-width: 0;
}
.adv-experts .adv-h2 {
  margin-top: 0;
}
.adv-experts .adv-text {
  margin-top: 16px;
}
.adv-experts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 37px;
  margin-top: 23px;
}
.adv-experts__list li {
  width: 85px;
  text-align: center;
}
.adv-experts__list img {
  width: 85px;
  height: 85px;
}
.adv-experts__list span {
  display: block;
  margin: 0 -10px;
  color: #294c7a;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---------- 相談メニュー ---------- */
.adv-menu {
  padding-bottom: 75px;
}
.adv-menu__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  align-items: start;
  margin-top: 42px;
}
.adv-menu__img {
  width: 100%;
  aspect-ratio: 460 / 315;
  object-fit: cover;
}
.adv-menu__item .adv-h3 {
  margin-top: 21px;
  line-height: 40px;
}
.adv-menu__item .adv-text {
  margin-top: 10px;
  line-height: 1.8;
}

/* ---------- ご相談の流れ ---------- */
.adv-process__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
}
.adv-process__row + .adv-process__row {
  margin-top: 47px;
}
.adv-process__img {
  flex: 0 0 50%;
}
.adv-process__body {
  flex: 0 0 44.5%;
  min-width: 0;
}
.adv-process__row--rev {
  flex-direction: row-reverse;
}
.adv-process__body .adv-h3 {
  line-height: 52px;
}
.adv-process__list {
  margin-top: 20px;
  font-size: 1.6rem;
  line-height: 35px;
}
.adv-process__flowTitle {
  margin-top: 59px;
}
.adv-steps {
  display: grid;
  grid-template-columns: 367fr 361fr 350fr 382fr;
  min-height: 350px;
  margin-top: 25px;
  background: #fff;
  list-style: none;
}
.adv-step {
  position: relative;
  padding: 75px 20px 40px 33px;
}
.adv-step:first-child {
  padding-left: 50px;
}
.adv-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 45px;
  right: 0;
  height: 265px;
  border-right: 1px dotted #a7b0c0;
}
.adv-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 165px;
  right: -9px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #395680;
}
.adv-step__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.adv-step__no {
  flex: none;
  padding: 10px;
  background: #395680;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 52px;
  white-space: nowrap;
}
.adv-step__title {
  margin-top: 2px;
  color: #395680;
  font-size: clamp(1.5rem, 1.09vw, 2.1rem);
  font-weight: 700;
  line-height: 35px;
  white-space: nowrap;
}
.adv-step__text {
  margin-top: 32px;
  font-size: clamp(1.2rem, 0.73vw, 1.4rem);
  line-height: 35px;
}
.adv-note {
  margin-top: 7px;
  font-size: 1.4rem;
  line-height: 2.5;
}

/* ---------- お問い合わせ導線 ---------- */
.adv-contact {
  margin-top: 115px;
}
.adv-contact__inner {
  display: flex;
  background: #fff;
}
.adv-contact__body {
  flex: 0 0 50%;
  padding: 76px 80px 77px;
}
.adv-contact__img {
  flex: 0 0 50%;
}
.adv-contact__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.adv-contact__title {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.66;
}
.adv-contact__text {
  margin-top: 37px;
  max-width: 566px;
  font-size: 1.3rem;
  line-height: 2;
}
.adv-contact__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 255px;
  max-width: 100%;
  height: 50px;
  margin-top: 50px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 0.675px;
  transition: opacity 0.3s ease;
}
.adv-contact__btn:hover {
  opacity: 0.8;
}

/* ---------- 関連ページ ---------- */
.adv-related {
  margin-top: 167px;
  margin-bottom: 146px;
  padding: 0;
}

/* ---------- やや狭いPC: STEPは4列のまま、バッジとタイトルを縦に積む ---------- */
@media only screen and (max-width: 1366px) {
  .adv-step__head {
    display: block;
  }
  .adv-step__title {
    margin-top: 12px;
  }
  /* 列が狭いときは、デザインの改行を使わず自然に折り返す（1〜2文字だけの行を避ける） */
  .adv-step__text .adv-br-pc {
    display: none;
  }
}

/* ---------- タブレット ---------- */
@media only screen and (max-width: 1024px) {
  .adv-mv .c-mv__title {
    font-size: 5.6rem;
    line-height: 1.15;
  }
  .adv-lead,
  .adv-h2,
  .adv-h3 {
    font-size: 2.4rem;
  }
  .adv-issues__list {
    column-gap: 20px;
  }
  .adv-menu__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 50px;
    column-gap: 20px;
  }
  .adv-intro__body {
    max-width: none; /* 1列のときは文章も幅いっぱい */
  }
  .adv-contact__body {
    padding: 50px 40px;
  }
}

/* ---------- タブレット(768〜1024px): メニューは2列。3枚目は横いっぱいに（画像左・文章右） ---------- */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  /* 流れ: 2列×2行。STEP1→2、3→4は右向き△ */
  .adv-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    margin: 30px -20px 0;
    padding: 30px 20px 10px;
  }
  .adv-step,
  .adv-step:first-child {
    position: relative;
    padding: 0 24px 34px;
  }
  .adv-step:nth-child(-n + 2) {
    margin-bottom: 34px;
    border-bottom: 1px dotted #a7b0c0;
  }
  .adv-step:nth-child(odd)::before {
    display: block;
    top: 0;
    height: calc(100% - 34px);
  }
  .adv-step:nth-child(odd)::after {
    display: block;
    top: 40px;
    right: -9px;
  }
  .adv-step:nth-child(2)::before,
  .adv-step:nth-child(2)::after,
  .adv-step:nth-child(4)::before,
  .adv-step:nth-child(4)::after {
    display: none; /* 2→3 の下向き△は付けない（上段と下段は点線で区切るだけ） */
  }
  /* 画像と文章は上端をそろえる（中央揃えだと行ごとに文章の位置がばらつく） */
  .adv-experts__inner,
  .adv-process__row {
    align-items: flex-start;
  }
  .adv-menu__item:last-child {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: 20px;
  }
  .adv-menu__item:last-child .adv-menu__img {
    grid-row: 1 / 3;
  }
  .adv-menu__item:last-child .adv-h3 {
    margin-top: 0;
  }
}

/* ---------- SP ---------- */
@media only screen and (max-width: 767px) {
  .adv-steps {
    display: block;
    margin: 30px -20px 0;
    padding: 30px 20px;
    min-height: 0;
  }
  .adv-step,
  .adv-step:first-child {
    position: relative;
    padding: 0 0 38px;
  }
  .adv-step:not(:last-child) {
    margin-bottom: 38px;
    border-bottom: 1px dotted #a7b0c0;
  }
  .adv-step:not(:last-child)::before {
    display: none;
  }
  .adv-step:not(:last-child)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -12px;
    left: 50%;
    margin-left: -12px;
    border-top: 18px solid #395680;
    border-right: 12px solid transparent;
    border-bottom: 0;
    border-left: 12px solid transparent;
  }
  .adv-step__head {
    display: flex;
  }
  .adv-step__title {
    margin-top: 0;
  }
  .adv-br-pc {
    display: none;
  }
  .adv-br-sp {
    display: inline;
  }
  .adv-label {
    margin-top: 49px;
    font-size: 1.2rem;
  }
  .adv-h2 {
    margin-top: 50px;
    font-size: 2.2rem;
    line-height: 1.5;
  }
  .adv-h3,
  .adv-lead {
    font-size: 2.2rem;
    line-height: 1.5;
  }
  .adv-text {
    font-size: 1.3rem;
    line-height: 2;
  }
  .adv-mv .c-mv__heading {
    padding-bottom: 20px;
  }
  .adv-mv .c-mv__subtitle {
    margin-bottom: 8px;
    font-size: 1.1rem;
  }
  .adv-mv .c-mv__title {
    font-size: 4.4rem;
    letter-spacing: -1px;
    line-height: 52px;
  }
  .adv-mv .c-mv__img {
    object-position: 60% center;
  }

  .adv-intro__inner {
    display: block;
  }
  .adv-intro {
    padding-top: 70px;
  }
  .adv-intro__body {
    max-width: none;
  }
  .adv-intro .adv-text {
    margin-top: 20px;
  }
  .adv-cta {
    height: 72px;
    margin-top: 30px;
    padding: 0 16px 0 20px;
    font-size: 1.4rem;
  }
  .adv-cta__icon {
    width: 40px;
    height: 40px;
  }
  .adv-intro__img {
    margin: 40px -20px 0;
  }

  .adv-issues {
    margin-top: 80px;
    padding-bottom: 40px;
  }
  .adv-issues__list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
    margin-top: 40px;
  }
  .adv-issue .adv-h3 {
    margin-top: 16px;
  }
  .adv-issue .adv-text {
    margin-top: 6px;
  }

  .adv-experts {
    padding-bottom: 60px;
  }
  .adv-experts__inner {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    margin-top: 0;
  }
  .adv-experts__img,
  .adv-experts__body {
    flex: none;
  }
  .adv-experts .adv-h2 {
    margin-top: 50px;
  }
  .adv-experts .adv-text {
    margin-top: 20px;
  }
  .adv-experts__img {
    margin: 40px -20px 0;
  }
  .adv-experts__list {
    gap: 10px;
    margin-top: 30px;
  }
  .adv-experts__list li {
    flex: 1 1 0;
    width: auto;
  }
  .adv-experts__list img {
    width: 56px;
    height: 56px;
    margin: 0 auto;
  }
  .adv-experts__list span {
    margin: 0 -4px;
    font-size: 1.1rem;
  }

  .adv-menu {
    padding-bottom: 50px;
  }
  .adv-menu__list {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }
  .adv-menu__img {
    aspect-ratio: 335 / 165;
  }
  .adv-menu__item .adv-h3 {
    line-height: 1.5;
  }

  .adv-process__row {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
  }
  .adv-process__row + .adv-process__row {
    margin-top: 40px;
  }
  .adv-process__row--rev {
    flex-direction: column;
  }
  .adv-process__img {
    margin: 0 -20px;
  }
  .adv-process__body {
    margin-top: 26px;
  }
  .adv-process__body .adv-h3 {
    line-height: 1.5;
  }
  .adv-process__list {
    margin-top: 12px;
    font-size: 1.3rem;
    line-height: 26px;
  }
  .adv-process__list li {
    padding-left: 1em;
    text-indent: -1em;
  }
  .adv-process__list li::before {
    content: '・';
  }
  .adv-process__flowTitle {
    margin-top: 50px;
  }
  .adv-step__title {
    margin-top: 0;
    font-size: 2rem;
    line-height: 35px;
  }
  .adv-step__text {
    margin-top: 16px;
    font-size: 1.3rem;
    line-height: 26px;
  }
  .adv-note {
    margin-top: 30px;
    font-size: 1.2rem;
    line-height: 2.2;
  }

  .adv-contact {
    margin-top: 60px;
  }
  .adv-contact__inner {
    flex-direction: column-reverse;
  }
  .adv-contact__img img {
    aspect-ratio: 335 / 175;
  }
  .adv-contact__body {
    padding: 30px;
  }
  .adv-contact__title {
    font-size: 2.2rem;
    line-height: 1.5;
  }
  .adv-contact__text {
    margin-top: 8px;
    font-size: 1.3rem;
    line-height: 2;
  }
  .adv-contact__btn {
    width: 100%;
    margin-top: 20px;
  }

  .adv-related {
    margin-top: 80px;
    margin-bottom: 60px;
  }
}

/* 追従お問い合わせボタン */
.adv-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.22);
  transition: background-color 0.3s, color 0.3s, opacity 0.3s, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
}
.adv-float.is-visible {
  opacity: 1;
  visibility: visible;
}
.adv-float:hover {
  background: var(--color-white);
  color: var(--color-primary);
}
@media (max-width: 767px) {
  .adv-float {
    right: 0;
    left: 0;
    bottom: 0;
    justify-content: center;
    border-radius: 0;
    padding: 14px 16px;
    box-shadow: none;
  }
}
