@charset "UTF-8";

/*----------------------------------
  component.css
-----------------------------------*/
/*----------------------------------
  ボタン共通：ホバーで背景色と文字色を反転
  --btn-color：背景色（ホバー時は文字色）
  --btn-text ：文字色（ホバー時は背景色）
-----------------------------------*/
/*----------------------------------
  ボタン（→付き）
-----------------------------------*/
.c-btn {
  --btn-color: #eb6016;
  --btn-text: #ffffff;
  border: 1px solid var(--btn-color);
  background-color: var(--btn-color);
  color: var(--btn-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.c-btn p {
  color: var(--btn-text);
  transition: color 0.3s ease;
}

@media (any-hover: hover) {
  .c-btn:hover {
    opacity: 1;
    background-color: var(--btn-text);
    color: var(--btn-color);
  }

  .c-btn:hover p {
    color: var(--btn-color);
  }
}

.c-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 17.5rem;
  min-height: 3.4375rem;
  padding-inline: 1.625rem 1.5rem;
  border-radius: 0.4375rem;
}

@media (min-width: 768px) {
  .c-btn {
    width: 18.75rem;
  }
}

.c-btn p {
  font-size: max(1rem, 12.8px);
}

@media (min-width: 0px) {
  .c-btn p {
    font-size: 1rem;
  }
}

.c-btn p {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.0265625em;
}

.c-btn::after {
  content: "→";
  color: var(--btn-text);
  font-family: "Jost", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: translate 0.3s ease, color 0.3s ease;
  pointer-events: none;
}

@media (any-hover: hover) {
  .c-btn:hover::after {
    color: var(--btn-color);
    translate: 0.3125rem 0;
  }
}

.c-btn--red {
  --btn-color: #e83439;
}

.c-btn--white {
  --btn-color: #ffffff;
  --btn-text: #04192e;
}

@media (min-width: 768px) {
  .c-btn--sm {
    width: 14.375rem;
  }
}

/*----------------------------------
  相談ボタン（メール・LINE）
-----------------------------------*/
.c-btn-contact {
  --btn-color: #e83439;
  --btn-text: #ffffff;
  border: 1px solid var(--btn-color);
  background-color: var(--btn-color);
  color: var(--btn-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.c-btn-contact p {
  color: var(--btn-text);
  transition: color 0.3s ease;
}

@media (any-hover: hover) {
  .c-btn-contact:hover {
    opacity: 1;
    background-color: var(--btn-text);
    color: var(--btn-color);
  }

  .c-btn-contact:hover p {
    color: var(--btn-color);
  }
}

.c-btn-contact {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 0.625rem;
  width: 100%;
  min-height: 3.5rem;
  padding-inline: 1.25rem;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .c-btn-contact {
    min-height: 4rem;
  }
}

@media (any-hover: hover) {
  .c-btn-contact:hover .c-btn-contact__icon {
    display: none;
  }

  .c-btn-contact:hover .c-btn-contact__icon--hover {
    display: block;
  }
}

.c-btn-contact p {
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .c-btn-contact p {
    font-size: 0.875rem;
  }
}

.c-btn-contact p {
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.0303571429em;
}

.c-btn-contact::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  translate: 0 -50%;
  width: 0.375rem;
  height: 0.4375rem;
  background-color: var(--btn-text);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  pointer-events: none;
  transition: translate 0.3s ease, background-color 0.3s ease;
}

@media (any-hover: hover) {
  .c-btn-contact:hover::after {
    background-color: var(--btn-color);
    translate: 0.25rem -50%;
  }
}

.c-btn-contact .c-btn-contact__icon {
  flex-shrink: 0;
  width: 1.1875rem;
  height: auto;
  aspect-ratio: 19/14.3;
  object-fit: contain;
}

.c-btn-contact .c-btn-contact__icon--hover {
  display: none;
}

.c-btn-contact--line {
  --btn-color: #03c153;
}

.c-btn-contact--line .c-btn-contact__icon {
  width: 1.34375rem;
  aspect-ratio: 21.5/21;
}

/*----------------------------------
  セクションタイトル
-----------------------------------*/
.c-section-ttl {
  position: relative;
}

.c-section-ttl__label {
  display: inline-block;
  padding-inline: 0.625rem;
  border-radius: 0.1875rem;
  background-color: #e83439;
  color: #ffffff;
  font-size: max(0.75rem, 9.6px);
}

@media (min-width: 0px) {
  .c-section-ttl__label {
    font-size: 0.75rem;
  }
}

.c-section-ttl__label {
  font-weight: 700;
  line-height: 1.95;
  letter-spacing: 0.0354166667em;
}

@media (min-width: 768px) {
  .c-section-ttl__label {
    font-size: 0.8125rem;
  }
}

.c-section-ttl:has(> .c-section-ttl__en) .c-section-ttl__label {
  margin-block-start: 30px;
}

@media (min-width: 768px) {
  .c-section-ttl:has(> .c-section-ttl__en) .c-section-ttl__label {
    margin-block-start: 55px;
  }
}

@media (min-width: 1024px) {
  .c-section-ttl:has(> .c-section-ttl__en) .c-section-ttl__label {
    margin-block-start: 0;
  }
}

.c-section-ttl__label--orange {
  background-color: #eb6016;
}

.c-section-ttl__ja {
  margin-block-start: 0.75rem;
  padding-inline-start: 0.625rem;
  color: #292a29;
  font-size: max(1.375rem, 17.6px);
}

@media (min-width: 0px) {
  .c-section-ttl__ja {
    font-size: 1.3rem;
  }
}

.c-section-ttl__ja {
  font-weight: 700;
  line-height: 1.6363636364;
}

@media (min-width: 768px) {
  .c-section-ttl__ja {
    margin-block-start: 1.25rem;
    font-size: 1.8rem;
    line-height: 1.5625;
  }
}


@media (min-width: 0px) {
  .c-section-ttl__ja--s {
    font-size: 1.2rem;
  }
}
@media (min-width: 768px) {
  .c-section-ttl__ja--s {
    margin-block-start: 1.25rem;
    font-size: 1.8rem;
    line-height: 1.5625;
  }
}
.c-section-ttl__ja--white {
  color: #ffffff;
}

.c-section-ttl__ja--red {
  color: #e83439;
}

.c-section-ttl__en {
  position: absolute;
  top: -3.125rem;
  right: calc(24px - 1.25rem - 0.15em);
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: 0.15em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

@media (min-width: 768px) {
  .c-section-ttl__en {
    top: -2.5rem;
    right: calc(24px - 6.875rem - 0.875rem);
    font-size: 5rem;
    letter-spacing: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .c-section-ttl__en {
    top: -0.625rem;
    right: calc(24px - 6.875rem - 1.25rem);
    font-size: 7rem;
    letter-spacing: 1.25rem;
  }
}

.c-section-ttl__en span {
  color: rgba(235, 96, 22, 0.4);
}

.c-section-ttl__en--color {
  color: rgba(232, 52, 57, 0.4);
}

.c-section-ttl__en--orange {
  color: rgba(235, 96, 22, 0.4);
}

.c-section-ttl__en--orange span {
  color: rgba(232, 52, 57, 0.4);
}

/*----------------------------------
  カテゴリ・日付（news・voice など記事アイテム共通）
  記事ごとに c-○○__date / c-○○__tag は作らず、この共通クラスを使う
-----------------------------------*/
.c-tag {
  display: inline-block;
  min-width: 3.8125rem;
  padding: 0.375rem 0.3125rem;
  border-radius: 0.3125rem;
  background-color: #fce7e7;
  color: #31352f;
  text-align: center;
  font-size: max(0.75rem, 9.6px);
}

@media (min-width: 0px) {
  .c-tag {
    font-size: 0.75rem;
  }
}

.c-tag {
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.03em;
}

.c-date {
  color: #04192e;
  font-family: "Jost", sans-serif;
  font-size: 0.75rem;
  line-height: 1;
}

/*----------------------------------
  ページ内リンク・カテゴリリスト共通
  赤文字 ＋ 赤丸の下向き矢印、項目の間に縦線、下に横線
  ・.c-page-nav：ページ内リンク（空き家相談・土地活用）
  ・.c-blog__menu：CMSが出力するカテゴリ一覧（お客様の声・お知らせ）
-----------------------------------*/
.c-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block-end: 1.25rem;
  border-bottom: 1px solid #b5b5b5;
}

@media (min-width: 768px) {
  .c-page-nav {
    gap: 1rem 2.5rem;
    padding-block-end: 2.0625rem;
  }
}

.c-page-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
  color: #e83439;
  white-space: nowrap;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .c-page-nav__item {
    font-size: 0.875rem;
  }
}

.c-page-nav__item {
  font-weight: 700;
  line-height: 2.2857142857;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .c-page-nav__item {
    column-gap: 1.1875rem;
    font-size: 1rem;
  }
}

.c-page-nav__item::before {
  content: "";
  flex-shrink: 0;
  order: 2;
  width: 1.375rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: #e83439;
}

.c-page-nav__item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.6875rem;
  translate: 50% -50%;
  rotate: 90deg;
  width: 0.55rem;
  aspect-ratio: 8.8/5.63;
  background-color: #ffffff;
  clip-path: polygon(68.4% 0, 63.4% 7.9%, 86.5% 44.4%, 0 44.4%, 0 55.6%, 86.5% 55.6%, 63.4% 92.1%, 68.4% 100%, 100% 50%);
  pointer-events: none;
}

@media (any-hover: hover) {
  .c-page-nav__item:hover {
    opacity: 0.7;
  }
}

@media (min-width: 768px) {
  .c-page-nav__item+.c-page-nav__item {
    padding-inline-start: 2.5rem;
    background: linear-gradient(#b5b5b5, #b5b5b5) left center/1px 1.5625rem no-repeat;
  }
}

.c-page-nav__item p {
  color: #e83439;
}

.c-blog__menu .webgene-blog {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block-end: 1.25rem;
  border-bottom: 1px solid #b5b5b5;
}

@media (min-width: 768px) {
  .c-blog__menu .webgene-blog {
    gap: 1rem 2.5rem;
    padding-block-end: 2.0625rem;
  }
}

@media (min-width: 768px) {
  .c-blog__menu .webgene-item+.webgene-item {
    padding-inline-start: 2.5rem;
    background: linear-gradient(#b5b5b5, #b5b5b5) left center/1px 1.5625rem no-repeat;
  }
}

.c-blog__menu .c-blog__item {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
  color: #e83439;
  white-space: nowrap;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .c-blog__menu .c-blog__item {
    font-size: 0.875rem;
  }
}

.c-blog__menu .c-blog__item {
  font-weight: 700;
  line-height: 2.2857142857;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .c-blog__menu .c-blog__item {
    column-gap: 1.1875rem;
    font-size: 1rem;
  }
}

.c-blog__menu .c-blog__item::before {
  content: "";
  flex-shrink: 0;
  order: 2;
  width: 1.375rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: #e83439;
}

.c-blog__menu .c-blog__item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.6875rem;
  translate: 50% -50%;
  rotate: 90deg;
  width: 0.55rem;
  aspect-ratio: 8.8/5.63;
  background-color: #ffffff;
  clip-path: polygon(68.4% 0, 63.4% 7.9%, 86.5% 44.4%, 0 44.4%, 0 55.6%, 86.5% 55.6%, 63.4% 92.1%, 68.4% 100%, 100% 50%);
  pointer-events: none;
}

@media (any-hover: hover) {
  .c-blog__menu .c-blog__item:hover {
    opacity: 0.7;
  }
}

.c-blog__item.is-selected {
  opacity: 0.7;
}

/*----------------------------------
  ページネーション（CMSが出力する .webgene-pagination）
  前へ・次へ：丸＋矢印（::before・::after）、番号：丸、選択中：赤
-----------------------------------*/
.webgene-pagination {
  margin-block-start: 3.75rem;
}

@media (min-width: 768px) {
  .webgene-pagination {
    margin-block-start: 4.6875rem;
  }
}

.webgene-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 0.625rem;
}

.webgene-pagination li {
  list-style: none;
}

.webgene-pagination a {
  display: grid;
  place-items: center;
}

.webgene-pagination .number a {
  width: 1.875rem;
  aspect-ratio: 1/1;
  border: 1px solid #c4c4c4;
  border-radius: 50%;
  background-color: #ffffff;
  color: #4b4b4b;
  font-family: "Jost", sans-serif;
  font-size: 0.875rem;
  line-height: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

@media (any-hover: hover) {
  .webgene-pagination .number a:hover {
    opacity: 1;
    border-color: #e83439;
    background-color: #e83439;
    color: #ffffff;
  }
}

.webgene-pagination .number.selected a {
  border-color: #e83439;
  background-color: #e83439;
  color: #ffffff;
}

.webgene-pagination .prev a,
.webgene-pagination .next a {
  position: relative;
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  color: #4b4b4b;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {

  .webgene-pagination .prev a,
  .webgene-pagination .next a {
    font-size: 0.875rem;
  }
}

.webgene-pagination .prev a,
.webgene-pagination .next a {
  font-weight: 400;
  line-height: 1.4285714286;
}

.webgene-pagination .prev a::before,
.webgene-pagination .next a::before {
  content: "";
  width: 2.5rem;
  aspect-ratio: 1/1;
  border: 1px solid #c4c4c4;
  border-radius: 50%;
  background-color: #ffffff;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.webgene-pagination .prev a::after,
.webgene-pagination .next a::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.5rem;
  aspect-ratio: 1/1;
  border-top: 1.5px solid #372710;
  border-left: 1.5px solid #372710;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

@media (any-hover: hover) {

  .webgene-pagination .prev a:hover,
  .webgene-pagination .next a:hover {
    opacity: 1;
  }

  .webgene-pagination .prev a:hover::before,
  .webgene-pagination .next a:hover::before {
    border-color: #e83439;
    background-color: #e83439;
  }

  .webgene-pagination .prev a:hover::after,
  .webgene-pagination .next a:hover::after {
    border-color: #ffffff;
  }
}

.webgene-pagination .prev {
  margin-inline-end: 1.25rem;
}

.webgene-pagination .prev a {
  color: #919191;
}

.webgene-pagination .prev a::after {
  left: 1.0625rem;
  translate: 0 -50%;
  rotate: -45deg;
}

.webgene-pagination .next {
  margin-inline-start: 1.25rem;
}

.webgene-pagination .next a::before {
  order: 2;
  border-color: #e83439;
  background-color: #e83439;
}

.webgene-pagination .next a::after {
  right: 1.0625rem;
  translate: 0 -50%;
  rotate: 135deg;
  border-color: #ffffff;
}

@media (any-hover: hover) {
  .webgene-pagination .next a:hover::before {
    background-color: #ffffff;
  }

  .webgene-pagination .next a:hover::after {
    border-color: #e83439;
  }
}

/*----------------------------------
  丸ボタン（一覧に戻る など）
-----------------------------------*/
.c-btn-round {
  --btn-color: #e83439;
  --btn-text: #ffffff;
  border: 1px solid var(--btn-color);
  background-color: var(--btn-color);
  color: var(--btn-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.c-btn-round p {
  color: var(--btn-text);
  transition: color 0.3s ease;
}

@media (any-hover: hover) {
  .c-btn-round:hover {
    opacity: 1;
    background-color: var(--btn-text);
    color: var(--btn-color);
  }

  .c-btn-round:hover p {
    color: var(--btn-color);
  }
}

.c-btn-round {
  display: grid;
  place-items: center;
  width: 11.4375rem;
  min-height: 2.9375rem;
  margin-inline: auto;
  border-radius: 100vmax;
}

.c-btn-round p {
  font-size: max(0.9375rem, 12px);
}

@media (min-width: 0px) {
  .c-btn-round p {
    font-size: 0.9375rem;
  }
}

.c-btn-round p {
  font-weight: 600;
  line-height: 1.4666666667;
}

/*----------------------------------
  記事一覧
-----------------------------------*/
.p-news__list .webgene-blog {
  display: flex;
  flex-direction: column;
  row-gap: 0.625rem;
}

/*----------------------------------
  news 記事アイテム 詳細ページと共通
-----------------------------------*/
.c-news__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1.25rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid #dcded5;
  border-radius: 0.625rem;
  background-color: #ffffff;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .c-news__item {
    min-height: 5rem;
    padding: 0.625rem 1.875rem 0.625rem 2.375rem;
  }
}

@media (any-hover: hover) {
  .c-news__item:hover {
    opacity: 0.8;
  }

  .c-news__item:hover .c-news__arrow {
    translate: 0.3125rem 0;
  }
}

.c-news__info {
  flex: 1;
  min-width: 0;
}

@media (min-width: 768px) {
  .c-news__info {
    display: flex;
    align-items: center;
    column-gap: 2.75rem;
  }
}

.c-news__meta {
  display: flex;
  align-items: center;
  column-gap: 1.875rem;
  white-space: nowrap;
}

.c-news__title {
  margin-block-start: 0.625rem;
  color: #04192e;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .c-news__title {
    font-size: 0.875rem;
  }
}

.c-news__title {
  font-weight: 400;
  line-height: 1.8571428571;
  letter-spacing: 0.03em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .c-news__title {
    margin-block-start: 0;
    line-height: 2.2857142857;
  }
}

.c-news__arrow {
  flex-shrink: 0;
  color: #e83439;
  font-family: "Jost", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  transition: translate 0.3s ease;
}

/*----------------------------------
  voice 記事アイテム（一覧・詳細ページと共通）
  BaseCode の works（c-works__○○）を voice に置き換えたもの
-----------------------------------*/
.c-voice__item {
  display: block;
  height: 100%;
}

@media (any-hover: hover) {
  .c-voice__item:hover {
    opacity: 1;
  }

  .c-voice__item:hover .c-voice__img img {
    transform: scale(1.05);
  }

  .c-voice__item:hover .c-voice__next {
    opacity: 0.7;
  }
}

.c-voice__img {
  aspect-ratio: 354/250;
  border-radius: 0.625rem;
  overflow: hidden;
  isolation: isolate;
}

.c-voice__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  backface-visibility: hidden;
}

.c-voice__info {
  margin-block-start: 1.25rem;
}

.c-voice__meta {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
}

.c-voice__title {
  margin-block-start: 0.625rem;
  color: #04192e;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .c-voice__title {
    font-size: 0.875rem;
  }
}

.c-voice__title {
  font-weight: 400;
  line-height: 2.2857142857;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-voice__next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 5.625rem;
  margin-block-start: 0.25rem;
  margin-inline: auto 0;
  padding-block-end: 0.25rem;
  border-bottom: 1px solid #b5b5b5;
  color: #04192e;
  font-size: max(0.875rem, 11.2px);
}

@media (min-width: 0px) {
  .c-voice__next {
    font-size: 0.875rem;
  }
}

.c-voice__next {
  font-weight: 400;
  line-height: 1.4285714286;
  transition: opacity 0.3s ease;
}

.c-voice__next::after {
  content: "";
  width: 0.375rem;
  height: 0.4375rem;
  background-color: #e83439;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  pointer-events: none;
}

/*----------------------------------
  背景ループ文字
-----------------------------------*/
.c-section-header__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.bg-text__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
}

.bg-text {
  flex-shrink: 0;
  font-family: "Jost", sans-serif;
  margin-right: 3.75rem;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.03em;
  font-size: max(4.5rem, 57.6px);
}

@media (min-width: 0px) {
  .bg-text {
    font-size: 4.5rem;
  }
}

.bg-text {
  font-weight: 700;
}

@media (min-width: 768px) {
  .bg-text {
    margin-right: 6.25rem;
    font-size: max(9.5625rem, 122.4px);
    font-weight: 700;
  }
}

@media (min-width: 768px) and (min-width: 0px) {
  .bg-text {
    font-size: 9.5625rem;
  }
}

/*----------------------------------
  アニメーション
  .js-fadeUp（下からふわっと表示）は animation.js（GSAP の timeline・stagger・ScrollTrigger.batch）で制御
  CSSでは初期状態を持たないため、JSが動かないCMS管理画面でもそのまま表示される

  ちらつき防止：animation.js は body の最後で読み込まれるため、
  そのままだと「一度表示 → gsap.set で非表示 → フェードイン」となり一瞬ちらつく。
  <head> の1行スクリプトで html に .js-anim を付け、JSが動く環境だけ最初から隠しておく。
  （.js-anim は animation.js の実行後、または3秒後に外れる）
-----------------------------------*/
.js-anim .js-fadeUp {
  visibility: hidden;
}

/*----------------------------------
  CMS管理画面用（JS 無効）：Swiper のスライドをサムネイルで一覧表示
  html.is-js がない＝JS が動かない CMS 管理画面のみ有効。
  公開サイトでは Swiper の初期化前に一瞬この表示になりレイアウトシフト（CLS）が起きるため対象外にする
-----------------------------------*/
html:not(.is-js) .swiper:not(.swiper-initialized) .swiper-wrapper {
  flex-wrap: wrap;
  gap: 1rem;
  height: auto;
}

html:not(.is-js) .swiper:not(.swiper-initialized) .swiper-slide {
  width: 15rem;
  height: auto;
  margin: 0;
}

/*----------------------------------
  一文字落ち対策（全ページ共通）
  ※ text-wrap-style のみ指定し、white-space: nowrap など「改行しない」指定には影響させない
-----------------------------------*/
p,
dd,
li {
  text-wrap-style: pretty;
}

@supports (hanging-punctuation: first) {

  p,
  dd,
  li {
    text-wrap-style: auto;
    hanging-punctuation: allow-end;
  }

  html .u-pretty {
    text-wrap-style: auto;
  }
}

h1,
h2,
h3,
h4 {
  word-break: auto-phrase;
}

/*----------------------------------
  一文字落ち対策（Firefox・Safari）
  Firefox は text-wrap-style: pretty 未対応、Safari は pretty を auto に戻しているため、箇所ごとに調整する。
  Chrome・Edge は条件に当てはまらないため、見た目は変わらない。
  ※ 既存の CSS は変更しない。調整は 余白 → letter-spacing → 文字サイズ の順で、一文字落ちが出る幅だけに当てる
-----------------------------------*/
@supports (not (text-wrap-style: pretty)) or (hanging-punctuation: first) {

  h1,
  h2,
  h3,
  h4 {
    text-wrap-style: auto;
  }

  .p-page-header__body .p-page-header__catch {
    margin-inline-end: -0.5625rem;
  }

  @media (min-width: 414px) {
    .p-page-header__body .p-page-header__catch {
      margin-inline-end: 0;
    }
  }

  @media (min-width: 768px) {
    .p-page-header__body .p-page-header__catch {
      margin-inline-end: -1.125rem;
    }
  }

  @media (min-width: 1024px) {
    .p-page-header__body .p-page-header__catch {
      margin-inline-end: 0;
    }
  }

  .p-page-header--img .p-page-header__lead {
    padding-inline-end: 0.4375rem;
  }

  @media (min-width: 414px) {
    .p-page-header--img .p-page-header__lead {
      padding-inline-end: 0;
    }
  }

  .p-page-header:has(+ .p-form) .p-page-header__lead {
    padding-inline-end: 1.3125rem;
  }

  @media (min-width: 414px) {
    .p-page-header:has(+ .p-form) .p-page-header__lead {
      padding-inline-end: 0;
    }
  }

  .p-page-header:has(+ .p-formcomplete) .p-page-header__lead {
    margin-inline-end: -0.6875rem;
  }

  @media (min-width: 414px) {
    .p-page-header:has(+ .p-formcomplete) .p-page-header__lead {
      margin-inline-end: 0;
    }
  }

  .p-cta .p-cta__text {
    padding-inline-end: 0.5625rem;
  }

  @media (min-width: 414px) {
    .p-cta .p-cta__text {
      padding-inline-end: 0;
    }
  }

  @media (min-width: 414px) {
    .p-cta__list .p-cta__item-text {
      margin-inline-end: -0.25rem;
    }
  }

  @media (min-width: 768px) {
    .p-cta__list .p-cta__item-text {
      margin-inline-end: 0;
    }
  }

  @media (min-width: 1024px) {
    .p-cta__item:nth-child(1) .p-cta__item-text {
      padding-inline-end: 0.4375rem;
    }
  }

  @media (min-width: 1024px) {
    .p-cta__item:nth-child(2) .p-cta__item-text {
      margin-inline-end: -0.6875rem;
    }
  }

  @media (min-width: 1024px) {
    .p-top-worry__item .p-top-worry__text {
      padding-inline-end: 0.125rem;
    }
  }

  .p-top-service__item .c-btn p {
    margin-inline-end: -0.4375rem;
  }

  @media (min-width: 768px) {
    .p-top-service__item .c-btn p {
      margin-inline-end: 0;
    }
  }

  @media (min-width: 1024px) {
    .p-top-strength__body .p-top-strength__text {
      margin-inline-end: -0.4375rem;
    }
  }

  @media (min-width: 1024px) {
    .p-top-company__text p {
      padding-inline-end: 0.125rem;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-worry__item:nth-child(1) .p-consult-worry__text {
      padding-inline-end: 0.125rem;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-worry__item:nth-child(2) .p-consult-worry__text {
      padding-inline-end: 0.1875rem;
    }
  }

  .p-consult-service__body .p-consult-service__text {
    padding-inline-end: 0.5625rem;
  }

  @media (min-width: 414px) {
    .p-consult-service__body .p-consult-service__text {
      padding-inline-end: 0;
    }
  }

  @media (min-width: 768px) {
    .p-consult-service__body .p-consult-service__text {
      padding-inline-end: 0.4375rem;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-service__body .p-consult-service__text {
      padding-inline-end: 0;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-service__item:nth-child(2) .p-consult-service__text {
      margin-inline-end: -0.125rem;
    }
  }

  .p-consult-flow .p-consult__lead {
    padding-inline-end: 0.5625rem;
  }

  @media (min-width: 414px) {
    .p-consult-flow .p-consult__lead {
      padding-inline-end: 0;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-flow .p-consult__lead {
      padding-inline-end: 0.3125rem;
    }
  }

  .p-consult-flow__item .p-consult-flow__text {
    margin-inline-end: -0.6875rem;
  }

  @media (min-width: 414px) {
    .p-consult-flow__item .p-consult-flow__text {
      margin-inline-end: 0;
      padding-inline-end: 0.125rem;
    }
  }

  @media (min-width: 768px) {
    .p-consult-flow__item .p-consult-flow__text {
      padding-inline-end: 0.75rem;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-flow__item .p-consult-flow__text {
      padding-inline-end: 0;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-flow__item:nth-child(1) .p-consult-flow__text {
      margin-inline-end: -0.3125rem;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-flow__item:nth-child(2) .p-consult-flow__text {
      margin-inline-end: -0.3125rem;
    }
  }

  @media (min-width: 1024px) {
    .l-main:has(.p-consult-worry) .p-consult-flow__item:nth-child(3) .p-consult-flow__text {
      margin-inline-end: -0.5rem;
    }
  }

  @media (min-width: 1024px) {
    .l-main:not(:has(.p-consult-worry)) .p-consult-flow__item:nth-child(3) .p-consult-flow__text {
      margin-inline-end: -0.875rem;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-flow__item:nth-child(4) .p-consult-flow__text {
      margin-inline-end: -0.875rem;
    }
  }

  @media (min-width: 414px) {
    .p-consult-faq__item:nth-child(1) .p-consult-faq__q p {
      padding-inline-end: 1.25rem;
    }
  }

  @media (min-width: 768px) {
    .p-consult-faq__item:nth-child(1) .p-consult-faq__q p {
      padding-inline-end: 0;
    }
  }

  @media (min-width: 414px) {
    .p-consult-faq__item:nth-child(2) .p-consult-faq__q p {
      margin-inline-end: -0.75rem;
    }
  }

  @media (min-width: 768px) {
    .p-consult-faq__item:nth-child(2) .p-consult-faq__q p {
      margin-inline-end: 0;
    }
  }

  @media (min-width: 414px) {
    .p-consult-faq__a p {
      padding-inline-end: 0.375rem;
    }
  }

  @media (min-width: 768px) {
    .p-consult-faq__a p {
      padding-inline-end: 0;
    }
  }

  @media (min-width: 1024px) {
    .p-consult-faq__item:nth-child(3) .p-consult-faq__a p {
      padding-inline-end: 0.8125rem;
    }
  }

  .p-form__privacy>p:nth-child(1), .p-form__privacy>p:nth-child(7), .p-form__privacy>p:nth-child(13) {
    padding-inline-end: 0.375rem;
  }

  .p-form__privacy>p:nth-child(5), .p-form__privacy>p:nth-child(9) {
    padding-inline-end: 0.3125rem;
  }

  .p-form__privacy>p:nth-child(11) {
    padding-inline-end: 0.1875rem;
  }

  .p-form__privacy>p:nth-child(3) {
    padding-inline-end: 1.3125rem;
  }

  .p-form__privacy>p:nth-child(2) {
    margin-inline-end: -0.3125rem;
  }

  @media (min-width: 414px) {
    .p-form__privacy>p:nth-child(n) {
      padding-inline-end: 0;
      margin-inline-end: 0;
    }

    .p-form__privacy>p:nth-child(3) {
      margin-inline-end: -0.9375rem;
    }

    .p-form__privacy>p:nth-child(5) {
      padding-inline-end: 1.375rem;
    }
  }

  @media (min-width: 768px) {
    .p-form__privacy>p:nth-child(n) {
      padding-inline-end: 0;
      margin-inline-end: 0;
    }
  }

  @media (min-width: 414px) {
    .drop-area .fileText {
      padding-inline-end: 0.75rem;
    }
  }

  @media (min-width: 768px) {
    .drop-area .fileText {
      padding-inline-end: 0;
    }
  }
}