/*
 * テナントマイページ固有スタイル
 */

/* =====================
   マイページ紹介 + 登録方法 セクション
   ===================== */
#tenant_mypage_about {
  background: #f7f7f7;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about {
    margin-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about {
    margin-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* 見出し行（h3 + PDFリンク横並び） */
#tenant_mypage_about .about_heading_row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .about_heading_row {
    row-gap: 2rem;
  }
}

#tenant_mypage_about .about_pdf_link {
  display: inline-flex;
  align-items: center;
  color: #0068b2;
  font-weight: 500;
  text-decoration: none;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .about_pdf_link {
    font-size: 1.4rem;
    line-height: 1.5em;
  }

  #tenant_mypage_about .about_pdf_link:hover {
    text-decoration: underline;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .about_pdf_link {
    font-size: 2.8rem;
    line-height: 1.5em;
  }
}

#tenant_mypage_about .about_pdf_link .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.4em solid transparent;
  border-bottom: 0.4em solid transparent;
  border-left: 0.5em solid #0068b2;
  margin-left: 0.4em;
}

/* コンテンツ（テキスト + 画像） */
#tenant_mypage_about .about_content {
  display: grid;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .about_content {
    grid-template-columns: 1fr 42rem;
    column-gap: 4rem;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .about_content {
    grid-template-columns: 1fr;
    row-gap: 4rem;
    margin-top: 4rem;
  }
}

/* CTAボックス */
#tenant_mypage_about .about_cta_box {
  background: #e5f0f7;
  border-radius: 0.6rem;
  text-align: center;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .about_cta_box {
    margin-top: 3rem;
    padding: 3rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .about_cta_box {
    margin-top: 5rem;
    padding: 5rem 4rem;
  }
}

#tenant_mypage_about .about_cta_box p {
  font-weight: 500;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .about_cta_box p {
    font-size: 1.5rem;
    line-height: 1.7em;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .about_cta_box p {
    font-size: 3rem;
    line-height: 1.7em;
  }
}

#tenant_mypage_about .about_cta_box small {
  font-size: 0.85em;
  font-weight: 400;
}

#tenant_mypage_about .btn_login {
  display: inline-block;
  background: #0068b2;
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 0.6rem;
  text-decoration: none;
  transition: ease-out 0.3s opacity;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .btn_login {
    margin-top: 2rem;
    padding: 1.4rem 5rem;
    font-size: 1.8rem;
    line-height: 1.5em;
  }

  #tenant_mypage_about .btn_login:hover {
    opacity: 0.8;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .btn_login {
    margin-top: 4rem;
    padding: 2.6rem 6rem;
    font-size: 3.4rem;
    line-height: 1.5em;
  }
}

/* デバイス画像 */
#tenant_mypage_about .about_images {
  /* display: flex;
  align-items: flex-end;
  justify-content: center; */
  position: relative;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .about_images {
    column-gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .about_images {
    column-gap: 3rem;
  }
}

#tenant_mypage_about .about_images figure {
  text-align: center;
}

/* #tenant_mypage_about .about_images figure img {
  border: 1px solid #cfcfcf;
  border-radius: 0.4rem;
} */

@media screen and (min-width: 769px) {
  #tenant_mypage_about .about_images .device_sp_img {
    width: 14rem;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  /* #tenant_mypage_about .about_images .device_pc_img {
    width: 26rem;
  } */
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .about_images .device_sp_img {
    width: 20rem;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  /* #tenant_mypage_about .about_images .device_pc_img {
    width: 40rem;
  } */
}

#tenant_mypage_about .about_images .device_label {
  font-weight: 500;
  color: #0068b2;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .about_images .device_label {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.5em;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .about_images .device_label {
    margin-bottom: 1rem;
    font-size: 2.6rem;
    line-height: 1.5em;
  }
}

/* ------ 登録フロー ------ */
#tenant_mypage_about .register_flow {
  position: relative;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .register_flow {
    margin-top: 5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .register_flow {
    margin-top: 8rem;
  }
}

#tenant_mypage_about .register_flow_title {
  display: inline-block;
  background: #0068b2;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 0.6rem;
  position: relative;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .register_flow_title {
    padding: 0.8rem 2.5rem;
    font-size: 1.8rem;
    line-height: 1.5em;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .register_flow_title {
    padding: 1.2rem 3.5rem;
    font-size: 3.4rem;
    line-height: 1.5em;
    margin-bottom: 3rem;
  }
}

/* 吹き出し三角 */
#tenant_mypage_about .register_flow_title::after {
  content: "";
  position: absolute;
  left: 3rem;
  bottom: -0.6rem;
  width: 0;
  height: 0;
  border-left: 0.7rem solid transparent;
  border-right: 0.7rem solid transparent;
  border-top: 0.8rem solid #0068b2;
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .register_flow_title::after {
    bottom: -0.8rem;
  }
}

#tenant_mypage_about .register_steps {
  display: grid;
  border: 2px solid #cfcfcf;
  border-radius: 0.6rem;
  background: #f0f4f7;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .register_steps {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    column-gap: 0;
    padding: 3rem;
    align-items: start;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .register_steps {
    grid-template-columns: 1fr;
    padding: 4rem;
    row-gap: 4rem;
  }
}

#tenant_mypage_about .register_step_item {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .register_step_item {
    padding: 0 1.5rem;
  }
}

#tenant_mypage_about .step_header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 0;
  border-bottom: none;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .step_header {
    margin-bottom: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .step_header {
    margin-bottom: 3rem;
  }
}

/* 左右の水平線 */
#tenant_mypage_about .step_header::before,
#tenant_mypage_about .step_header::after {
  content: "";
  position: absolute;
  top: calc(50% + 0.5em);
  height: 1px;
  background: #2c4a6e;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .step_header::before {
    left: 0;
    right: calc(50% + 5.5rem);
  }

  #tenant_mypage_about .step_header::after {
    left: calc(50% + 5.5rem);
    right: 0;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .step_header::before {
    left: 0;
    right: calc(50% + 9.5rem);
  }

  #tenant_mypage_about .step_header::after {
    left: calc(50% + 9.5rem);
    right: 0;
  }
}

#tenant_mypage_about .step_label {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.1em;
  text-align: center;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .step_label {
    font-size: 1.2rem;
    line-height: 1;
    /* margin-bottom: 0.3rem; */
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .step_label {
    font-size: 2.4rem;
    line-height: 1;
    /* margin-bottom: 0.5rem; */
  }
}

#tenant_mypage_about .step_num {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #fff;
  background: #2c4a6e;
  border-radius: 50%;
  margin-left: 0;
  line-height: 1;
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .step_num {
    width: 4.4rem;
    height: 4.4rem;
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .step_num {
    width: 8rem;
    height: 8rem;
    font-size: 3.6rem;
  }
}

#tenant_mypage_about .step_body {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .step_body {
    row-gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .step_body {
    row-gap: 3rem;
  }
}

#tenant_mypage_about .step_body figure img {
  border: 1px solid #cfcfcf;
  border-radius: 0.4rem;
}

#tenant_mypage_about .step_arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ed8b47;
  font-weight: 700;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .step_arrow {
    font-size: 2rem;
    padding: 0 0.5rem;
    margin-top: 6rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .step_arrow {
    font-size: 4rem;
    transform: rotate(90deg);
  }
}

/* 管理会社番号 */
#tenant_mypage_about .company_number {
  text-align: center;
}

#tenant_mypage_about .company_number_label {
  font-weight: 500;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .company_number_label {
    font-size: 1.3rem;
    line-height: 1.5em;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .company_number_label {
    font-size: 2.6rem;
    line-height: 1.5em;
  }
}

#tenant_mypage_about .company_number_digits {
  display: flex;
  justify-content: center;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .company_number_digits {
    column-gap: 0.5rem;
    margin: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .company_number_digits {
    column-gap: 1rem;
    margin: 1rem;
  }
}

#tenant_mypage_about .company_number_digits span {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #333;
  font-weight: 700;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .company_number_digits span {
    width: 3.2rem;
    height: 3.6rem;
    font-size: 2.4rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .company_number_digits span {
    width: 6rem;
    height: 7rem;
    font-size: 4.4rem;
  }
}

/* 承認待ちステータスボックス */
#tenant_mypage_about .approval_status_box {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .approval_status_box {
    padding: 1.5rem 2rem;
    column-gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .approval_status_box {
    flex-direction: column;
    padding: 3rem;
    row-gap: 2rem;
    text-align: center;
  }
}

/* 承認待ち（アイコン＋テキスト） */
#tenant_mypage_about .approval_badge {
  display: flex;
  align-items: center;
  color: #e5a00d;
  /* オレンジ */
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .approval_badge {
    font-size: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .approval_badge {
    font-size: 4rem;
  }
}

/* 時計アイコン（CSSで作成） */
#tenant_mypage_about .approval_badge::before {
  content: "";
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  margin-right: 0.3em;
  background: transparent;
}

/* 時計の針 */
#tenant_mypage_about .approval_badge::after {
  content: "";
  position: absolute;
  /* 疑似要素の配置調整が必要なため、一度アイコン内に配置するテクニックを使わず、
     シンプルにアイコンそのものを::beforeで完結させ、針はbackground-imageで描画するか
     別途要素を追加する方が安全だが、ここでは簡易的にborderとlinear-gradientで表現 */
}

/* 時計アイコン（改良版・グラデーションで針を表現） */
#tenant_mypage_about .approval_badge::before {
  width: 1.2em;
  height: 1.2em;
  background: linear-gradient(to bottom, currentColor 50%, transparent 50%) no-repeat center center/2px 70%,
    linear-gradient(to right, currentColor 50%, transparent 50%) no-repeat center center/70% 2px;
  transform: rotate(135deg);
  /* 針の角度調整 */
}

#tenant_mypage_about .approval_desc {
  font-size: 0.85em;
  line-height: 1.5em;
  text-align: left;
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .approval_desc {
    font-size: 2.4rem;
  }
}

/* 吹き出しメッセージ */
#tenant_mypage_about .approval_note {
  position: relative;
  background: #fcece0;
  /* 薄いオレンジ */
  border: 2px solid #ed8b47;
  /* 濃いオレンジ枠 */
  border-radius: 0.6rem;
  font-weight: 700;
  color: #333;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_about .approval_note {
    padding: 1.5rem;
    margin-top: -1rem;
    /* 少し上に重ねるイメージ */
    z-index: 2;
  }

  #tenant_mypage_about .approval_note p {
    font-size: 1.4rem;
    line-height: 1.5em;
  }

  /* 上向きの吹き出し（トゲ） */
  #tenant_mypage_about .approval_note::before {
    content: "";
    position: absolute;
    top: -2.4rem;
    /* 枠線の太さ分などを考慮 */
    right: 4rem;
    /* 右寄りに配置 */
    border: 1.2rem solid transparent;
    border-bottom: 1.2rem solid #ed8b47;
  }

  #tenant_mypage_about .approval_note::after {
    content: "";
    position: absolute;
    top: -1.9rem;
    right: 4rem;
    border: 1.2rem solid transparent;
    border-bottom: 1.2rem solid #fcece0;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_about .approval_note {
    padding: 3rem;
    margin-top: 2rem;
  }

  #tenant_mypage_about .approval_note p {
    font-size: 2.8rem;
    line-height: 1.5em;
  }

  /* SPでも吹き出しを表示する場合 */
  #tenant_mypage_about .approval_note::before {
    content: "";
    position: absolute;
    top: -4rem;
    right: 6rem;
    border: 2rem solid transparent;
    border-bottom: 2rem solid #ed8b47;
  }

  #tenant_mypage_about .approval_note::after {
    content: "";
    position: absolute;
    top: -3.2rem;
    right: 6rem;
    border: 2rem solid transparent;
    border-bottom: 2rem solid #fcece0;
  }
}

#tenant_mypage_about .approval_note small {
  display: block;
  font-weight: 400;
  margin-top: 0.5em;
  font-size: 0.9em;
}

/* =====================
   便利な機能（6つのPoint）セクション
   ===================== */
#tenant_mypage_points .point_grid {
  display: grid;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_points .point_grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 3rem;
    row-gap: 3rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_points .point_grid {
    grid-template-columns: 1fr;
    row-gap: 6rem;
  }
}

#tenant_mypage_points .point_card {
  background: #fff;
  border: 2px solid #333;
  /* 枠線を少し太く強調 */
  border-radius: 1rem;
  text-align: center;
  position: relative;
  /* overflow: hidden; 削除（はみ出し表示のため） */
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 0;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_points .point_card {
    padding: 3rem 2rem;
    margin-top: 2rem;
    /* はみ出し分のスペース */
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_points .point_card {
    padding: 5rem 3rem;
    margin-top: 4rem;
  }
}

#tenant_mypage_points .point_card .point_number {
  font-family: "Noto Serif JP", serif;
  color: #333;
  letter-spacing: 0.05em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 1rem;
  width: max-content;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_points .point_card .point_number {
    font-size: 1.4rem;
    line-height: 1;
    top: -1.7rem;
    /* 位置調整 */
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_points .point_card .point_number {
    font-size: 2.8rem;
    line-height: 1;
    top: -3.5rem;
  }
}

#tenant_mypage_points .point_card .point_number span {
  font-weight: 700;
  color: #333;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_points .point_card .point_number span {
    font-size: 3.4rem;
    line-height: 1;
    margin-left: 0.2em;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_points .point_card .point_number span {
    font-size: 6.8rem;
    line-height: 1;
    margin-left: 0.2em;
  }
}

#tenant_mypage_points .point_card h3 {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0068b2;
  /* 紺色に変更 */
}

@media screen and (min-width: 769px) {
  #tenant_mypage_points .point_card h3 {
    margin-top: 1rem;
    font-size: 2rem;
    line-height: 1.5em;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_points .point_card h3 {
    margin-top: 2rem;
    font-size: 3.6rem;
    line-height: 1.5em;
  }
}

#tenant_mypage_points .point_card .point_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  background: #fdf3d7;
  border-radius: 50%;
  /* 正円に変更 */
  position: relative;
  z-index: 1;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_points .point_card .point_icon {
    width: 14rem;
    height: 14rem;
    /* 正円のためwidthに合わせる */
    margin-top: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_points .point_card .point_icon {
    width: 28rem;
    height: 28rem;
    /* 正円のためwidthに合わせる */
    margin-top: 3rem;
  }
}

#tenant_mypage_points .point_card .point_icon img {
  width: 60%;
  height: auto;
}

#tenant_mypage_points .point_card .point_desc {
  text-align: left;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_points .point_card .point_desc {
    margin-top: 1.5rem;
    font-size: 1.4rem;
    line-height: 1.7em;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_points .point_card .point_desc {
    margin-top: 3rem;
    font-size: 2.8rem;
    line-height: 1.7em;
  }
}

#tenant_mypage_points .point_card .point_desc .note {
  color: #c00;
  font-size: 0.9em;
}

/* =====================
   よくあるご質問（Q＆A） セクション
   ===================== */
#tenant_mypage_faq {
  background: #f7f7f7;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_faq {
    margin-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_faq {
    margin-top: 8rem;
    padding-bottom: 8rem;
  }
}

#tenant_mypage_faq .faq_content {
  display: grid;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_faq .faq_content {
    grid-template-columns: 1fr 32rem;
    column-gap: 4rem;
    margin-top: 3rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_faq .faq_content {
    grid-template-columns: 1fr;
    row-gap: 6rem;
    margin-top: 5rem;
  }
}

#tenant_mypage_faq .faq_item {
  border-bottom: 1px solid #cfcfcf;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_faq .faq_item {
    padding: 2.5rem 0;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_faq .faq_item {
    padding: 4rem 0;
  }
}

#tenant_mypage_faq .faq_item:first-child {
  border-top: 1px solid #cfcfcf;
}

#tenant_mypage_faq .faq_item dt {
  font-weight: 700;
  letter-spacing: 0.05em;
  display: flex;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_faq .faq_item dt {
    font-size: 1.6rem;
    line-height: 1.5em;
    column-gap: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_faq .faq_item dt {
    font-size: 3.2rem;
    line-height: 1.5em;
    column-gap: 1rem;
  }
}

#tenant_mypage_faq .faq_item dd {
  display: flex;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_faq .faq_item dd {
    margin-top: 1rem;
    font-size: 1.4rem;
    line-height: 1.7em;
    column-gap: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_faq .faq_item dd {
    margin-top: 2rem;
    font-size: 2.8rem;
    line-height: 1.7em;
    column-gap: 1rem;
  }
}

#tenant_mypage_faq .faq_q {
  flex-shrink: 0;
  font-weight: 700;
  color: #0068b2;
}

#tenant_mypage_faq .faq_a {
  flex-shrink: 0;
  font-weight: 700;
  color: #0068b2;
}

.link_arrow {
  display: inline-flex;
  align-items: center;
  color: #0068b2;
  text-decoration: underline;
  font-weight: 500;
}

@media screen and (min-width: 769px) {
  .link_arrow:hover {
    text-decoration: none;
  }
}

#tenant_mypage_faq .faq_item dd a.link_arrow .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 0.35em solid transparent;
  border-bottom: 0.35em solid transparent;
  border-left: 0.45em solid #0068b2;
  margin-left: 0.3em;
}

/* FAQ 画像 */
#tenant_mypage_faq .faq_image {
  position: sticky;
  top: 12rem;
  align-self: start;
}

#tenant_mypage_faq .faq_image_label {
  font-weight: 500;
  text-align: center;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_faq .faq_image_label {
    font-size: 1.4rem;
    line-height: 1.5em;
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_faq .faq_image_label {
    font-size: 2.8rem;
    line-height: 1.5em;
    margin-bottom: 2rem;
  }
}

#tenant_mypage_faq .faq_image figure img {
  border: 1px solid #cfcfcf;
  border-radius: 0.6rem;
}

/* =====================
   経営セミナー セクション
   ===================== */
@media screen and (min-width: 769px) {
  #tenant_mypage_seminar {
    margin-top: 5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_seminar {
    margin-top: 8rem;
  }
}

#tenant_mypage_seminar .seminar_heading_row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
  #tenant_mypage_seminar .seminar_heading_row {
    row-gap: 2rem;
  }
}

#tenant_mypage_seminar .seminar_archive_link {
  display: inline-flex;
  align-items: center;
  color: #0068b2;
  font-weight: 500;
  text-decoration: none;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_seminar .seminar_archive_link {
    font-size: 1.4rem;
    line-height: 1.5em;
  }

  #tenant_mypage_seminar .seminar_archive_link:hover {
    text-decoration: underline;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_seminar .seminar_archive_link {
    font-size: 2.8rem;
    line-height: 1.5em;
  }
}

@media screen and (min-width: 769px) {
  #tenant_mypage_seminar .general_txt {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_seminar .general_txt {
    margin-top: 4rem;
  }
}

#tenant_mypage_seminar .seminar_image {
  border-radius: 0.6rem;
  overflow: hidden;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_seminar .seminar_image {
    margin-top: 3rem;
    margin-inline: auto;
    max-width: 70%;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_seminar .seminar_image {
    margin-top: 5rem;
  }
}

/* =====================
   多彩なサービス セクション
   ===================== */
#tenant_mypage_services {
  border-top: 1px solid #cfcfcf;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_services {
    margin-top: 5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_services {
    margin-top: 8rem;
  }
}

#tenant_mypage_services .service_list {
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_services .service_list {
    margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_services .service_list {
    margin-top: 4rem;
  }
}

#tenant_mypage_services .service_item {
  display: grid;
  border-bottom: 1px solid #cfcfcf;
}

#tenant_mypage_services .service_item:last-child {
  border-bottom: none;
}

#tenant_mypage_services .service_item {
  text-decoration: none;
  /* リンクの下線を消す */
  color: inherit;
  /* 文字色を継承 */
  transition: opacity 0.3s ease;
}

#tenant_mypage_services a.service_item:hover {
  opacity: 0.8;
  /* 全体のホバー効果 */
}

@media screen and (min-width: 769px) {
  #tenant_mypage_services .service_item {
    grid-template-columns: 1fr 20rem;
    column-gap: 4rem;
    padding: 3rem 0;
    align-items: start;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_services .service_item {
    grid-template-columns: 1fr;
    padding: 5rem 0;
    row-gap: 4rem;
  }
}

#tenant_mypage_services .service_item h3 {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #333;
  /* リンク化しても色は維持 */
}

@media screen and (min-width: 769px) {
  #tenant_mypage_services .service_item h3 {
    font-size: 1.6rem;
    line-height: 1.5em;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_services .service_item h3 {
    font-size: 3.2rem;
    line-height: 1.5em;
  }
}

@media screen and (min-width: 769px) {
  #tenant_mypage_services .service_item .general_txt {
    margin-top: 0.5rem;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_services .service_item .general_txt {
    margin-top: 1rem;
  }
}

#tenant_mypage_services .service_url {
  word-break: break-all;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_services .service_url {
    margin-top: 0.5rem;
    font-size: 1.3rem;
    line-height: 1.7em;
  }
}

@media screen and (max-width: 768px) {
  #tenant_mypage_services .service_url {
    margin-top: 1rem;
    font-size: 2.6rem;
    line-height: 1.7em;
  }
}

#tenant_mypage_services .service_url a {
  color: #0068b2;
  text-decoration: underline;
}

@media screen and (min-width: 769px) {
  #tenant_mypage_services .service_url a:hover {
    text-decoration: none;
  }
}

#tenant_mypage_services .service_image {
  border-radius: 0.6rem;
  overflow: hidden;
  /* 画像拡大時の枠の役割 */
}

#tenant_mypage_services .service_image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
  /* 拡大アニメーション */
}

/* ホバー時の画像拡大 (リンク付きのみ) */
#tenant_mypage_services a.service_item:hover .service_image img {
  transform: scale(1.1);
}

/* =====================
   共通補助
   ===================== */
#business_nav_sec {
  margin-top: 0;
}

/* =====================
   Web請求書サービス モーダル
   ===================== */
#modal_invoice {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  justify-content: center;
  align-items: center;
}

#modal_invoice.is_active {
  display: flex !important;
}

#modal_invoice .modal_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

#modal_invoice .modal_content {
  position: relative;
  background: #fff;
  width: 95%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1rem;
  z-index: 100001;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 768px) {
  #modal_invoice .modal_content {
    width: 90%;
  }
}

#modal_invoice .modal_close_btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 3rem;
  line-height: 1;
  color: #000;
  cursor: pointer;
  z-index: 100002;
  transition: opacity 0.3s;
}

@media screen and (max-width: 768px) {
  #modal_invoice .modal_close_btn {
    font-size: 5rem;
    top: 0.5rem;
    right: 1rem;
  }
}

#modal_invoice .modal_close_btn:hover {
  opacity: 0.8;
}

/* Header */
#modal_invoice .modal_header {
  background: linear-gradient(to bottom, #f8b500, #f39800);
  padding: 1.5rem;
  text-align: center;
  border-radius: 1rem 1rem 0 0;
  border-bottom: 3px solid #fff;
}

#modal_invoice .modal_header h2 {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

@media screen and (max-width: 768px) {
  #modal_invoice .modal_header h2 {
    font-size: 3.2rem;
    padding-right: 4rem;
  }
}

/* Body */
#modal_invoice .modal_body {
  padding: 3rem;
  background: #fdfae5;
}

@media screen and (max-width: 768px) {
  #modal_invoice .modal_body {
    padding: 2rem;
  }
}

/* Intro Section */
#modal_invoice .modal_intro {
  display: flex;
  background: #fff;
  border: 2px solid #eb6157;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 3rem;
}

@media screen and (max-width: 768px) {
  #modal_invoice .modal_intro {
    flex-direction: column;
  }
}

#modal_invoice .intro_title_box {
  background: #ea5550;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  flex-shrink: 0;
  width: 25%;
}

@media screen and (max-width: 768px) {
  #modal_invoice .intro_title_box {
    width: 100%;
    padding: 1.5rem;
  }
}

#modal_invoice .intro_title_box h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  #modal_invoice .intro_title_box h3 {
    font-size: 3.2rem;
  }
}

#modal_invoice .intro_text {
  padding: 2rem;
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 700;
  color: #eb6157;
  display: flex;
  align-items: center;
  width: 100%;
}

@media screen and (max-width: 768px) {
  #modal_invoice .intro_text {
    font-size: 2.8rem;
    padding: 2.5rem 2rem;
  }
}

/* Steps Section */
#modal_invoice .modal_steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: 2rem;
}

@media screen and (max-width: 768px) {
  #modal_invoice .modal_steps {
    flex-direction: column;
    row-gap: 4rem;
    padding-top: 0;
  }
}

/* Horizontal Line - Removed continuous line */
/* #modal_invoice .modal_steps::before {
  content: "";
  position: absolute;
  top: 3.5rem;
  left: 5%;
  width: 90%;
  height: 3px;
  background: #f39800;
  z-index: 0;
} */


#modal_invoice .step_item {
  position: relative;
  width: 23%;
  text-align: center;
  z-index: 1;
}

@media screen and (max-width: 768px) {
  #modal_invoice .step_item {
    width: 100%;
  }
}

#modal_invoice .step_label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

@media screen and (max-width: 768px) {
  #modal_invoice .step_label {
    font-size: 2.8rem;
  }
}

/* Individual lines for each step */
#modal_invoice .step_label::before,
#modal_invoice .step_label::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #f39800;
}

@media screen and (max-width: 768px) {

  #modal_invoice .step_label::before,
  #modal_invoice .step_label::after {
    display: none;
  }
}

#modal_invoice .step_label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  background: #f39800;
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  margin-left: 0.2rem;
  font-family: "Noto Sans JP", sans-serif;
  /* Cleaner for numbers */
}

@media screen and (max-width: 768px) {
  #modal_invoice .step_label span {
    width: 5rem;
    height: 5rem;
    font-size: 2.8rem;
  }
}

#modal_invoice .step_item figure {
  margin-bottom: 1rem;
  margin-top: 3rem;
  background: #fff;
}

#modal_invoice .step_item figure img {
  border: 4px solid #dcdcdc;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

#modal_invoice .step_desc {
  text-align: left;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  #modal_invoice .step_desc {
    font-size: 2.8rem;
  }
}

/* =====================
   登録方法（Steps）
   ===================== */
/* .register_flow {
  margin-bottom: 5rem;
  background: #f0f4f7;
  padding: 3rem;
  border-radius: 1rem;
} */

.register_flow_title {
  background: #005691;
  color: #fff;
  display: inline-block;
  padding: 0.5rem 2rem;
  font-weight: 700;
  border-radius: 0.4rem;
  margin-bottom: 2rem;
  position: relative;
  font-size: 1.6rem;
}

.register_flow_title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 20px;
  border-top: 10px solid #005691;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.register_steps {
  display: flex;
  flex-direction: column;
  /* Mobile first */
  gap: 2rem;
  align-items: center;
  /* Initial alignment */
}

@media screen and (min-width: 769px) {
  .register_steps {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.register_step_item {
  flex: 1;
  width: 100%;
  /* text-align: center; */
}

.step_header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Inner wrapper for text to ensure they stick together */
.step_header_inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  /* Space between lines and text */
}

/* Horizontal lines */
.step_header::before,
.step_header::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: #999;
  margin: 0;
  /* Margin handled by inner padding */
}

.step_label {
  font-size: 1.6rem;
  font-weight: 700;
  margin-right: 1.5rem;
  /* Space between Step and Number */
  font-family: "Noto Serif JP", serif;
  color: #999;
  white-space: nowrap;
  /* Prevent wrapping */
  display: inline-block;
}

.step_num {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  background: #005691;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  line-height: 4rem;
  display: inline-block;
}

.step_body {
  padding: 1rem;
  /* background: #fff; */
  border-radius: 0.5rem;
  min-height: 250px;
  /* Align items roughly */
}

.step_body figure img {
  width: 100%;
  /* max-width: 250px; */
  height: auto;
  border: 1px solid #ddd;
}

.step_arrow {
  display: none;
  /* Hide default text arrow if we use visual separation */
}

/* Add visual separator for desktop */
@media screen and (min-width: 769px) {
  .register_step_item:not(:last-child) {
    position: relative;
  }

  /* Optional: Add lines or arrows via CSS if needed, 
     but user asked for horizontal layout like image. 
     Usually implies lines. */
}

/* 管理会社番号デザイン */
.company_number {
  border: 2px solid #333;
  margin-top: 1.5rem;
  background: #fff;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.company_number_label {
  background: #333;
  color: #fff;
  font-weight: 700;
  padding: 0.5rem;
  font-size: 1.4rem;
  text-align: center;
}

.company_number_digits {
  display: flex;
  justify-content: center;
  padding: 0;
}

.company_number_digits span {
  flex: 1;
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 0.5rem 0;
  border-right: 1px dashed #ccc;
  color: #333;
  font-family: sans-serif;
}

.company_number_digits span:last-child {
  border-right: none;
}

.inline-block {
  @media (width > 768px) {
    display: inline-block;
  }
}

#medium_v {
  img {
    @media(width < 768px) {
      aspect-ratio: 750 / 350;
      object-fit: cover;
    }
  }
}