/* REXLI公式ブログ — HPリニューアル共通デザイン */
.rexli-renewal-blog {
  background: #fff;
  color: var(--body);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .02em;
}

.rexli-renewal-blog *,
.rexli-renewal-blog *::before,
.rexli-renewal-blog *::after {
  box-sizing: border-box;
}

.rexli-renewal-blog a {
  color: inherit;
}

.rexli-renewal-blog .header-cta {
  color: #fff;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rb-site-hd .site-hd nav a.is-current::after,
.rb-site-hd nav a.is-current::after {
  transform: scaleX(1);
}

.rb-hero {
  position: relative;
  overflow: hidden;
  padding: 136px 0 82px;
  background:
    radial-gradient(circle at 84% 14%, rgba(47, 194, 91, .09), transparent 25%),
    linear-gradient(145deg, #f7fbfa 0%, #fff 68%);
  border-bottom: 1px solid var(--line);
}

.rb-hero::after {
  content: "JOURNAL";
  position: absolute;
  right: -12px;
  bottom: -30px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14, 128, 124, .12);
  font-family: "Inter", sans-serif;
  font-size: clamp(80px, 14vw, 190px);
  font-weight: 900;
  letter-spacing: .02em;
  line-height: .8;
  pointer-events: none;
}

.rb-hero-line {
  position: absolute;
  top: 96px;
  right: -5%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), #2fc25b);
  transform: rotate(-8deg);
  transform-origin: right center;
  opacity: .45;
}

.rb-breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.rb-breadcrumb a {
  color: var(--teal-dark);
  text-decoration: none;
}

.rb-breadcrumb a:hover {
  text-decoration: underline;
}

.rb-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.rb-hero-copy h1 {
  margin: 18px 0 16px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .01em;
}

.rb-hero-description {
  max-width: 680px;
  color: #566361;
  font-size: 15.5px;
}

.rb-hero-description p {
  margin: 0;
}

.rb-search {
  display: flex;
  max-width: 560px;
  margin-top: 28px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #cfdad7;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 38, 42, .06);
}

.rb-search input[type="search"] {
  min-width: 0;
  flex: 1;
  padding: 14px 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.rb-search input[type="search"]::placeholder {
  color: #9ba8a5;
}

.rb-search button {
  padding: 0 22px;
  color: #fff;
  background: var(--teal);
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.rb-search button:hover {
  background: var(--teal-dark);
}

.rb-index {
  padding: 68px 0 110px;
}

.rb-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
}

.rb-category-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: .2s ease;
}

.rb-category-nav a:hover,
.rb-category-nav a.is-active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.rb-category-nav small {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  color: var(--muted);
  background: var(--cream);
  border-radius: 100px;
  font-family: "Inter", sans-serif;
  font-size: 9px;
}

.rb-category-nav a:hover small,
.rb-category-nav a.is-active small {
  color: var(--teal-dark);
  background: #fff;
}

.rb-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.rb-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(20, 38, 42, .055);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}

.rb-card:hover {
  transform: translateY(-7px);
  border-color: rgba(14, 154, 150, .35);
  box-shadow: 0 18px 45px rgba(20, 38, 42, .12);
}

.rb-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--teal-tint);
  text-decoration: none;
}

.rb-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.rb-card:hover .rb-card-thumb img {
  transform: scale(1.045);
}

.rb-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(14, 128, 124, .35);
  background:
    linear-gradient(135deg, rgba(14, 154, 150, .08), rgba(47, 194, 91, .12)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, .5) 18px 19px);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rb-card-category {
  position: absolute;
  left: 14px;
  bottom: 13px;
  padding: 5px 11px;
  color: #fff;
  background: rgba(20, 38, 42, .82);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  font-size: 10.5px;
  font-weight: 800;
}

.rb-card-body {
  padding: 21px 22px 23px;
}

.rb-card-body time {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: .06em;
}

.rb-card-body h2,
.rb-card-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.65;
}

.rb-card-body h2 a,
.rb-card-body h3 a {
  text-decoration: none;
}

.rb-card-body p {
  margin: 12px 0 0;
  color: #66726f;
  font-size: 12.5px;
  line-height: 1.8;
}

.rb-readmore {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  color: var(--teal-dark) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.rb-readmore span {
  transition: transform .25s ease;
}

.rb-card:hover .rb-readmore span {
  transform: translateX(4px);
}

.rb-pagination {
  margin-top: 46px;
}

.rb-pagination ul {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-pagination a,
.rb-pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.rb-pagination .current,
.rb-pagination a:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.rb-empty {
  padding: 70px 24px;
  text-align: center;
  background: var(--cream);
  border: 1.5px dashed #b9c8c5;
  border-radius: 18px;
}

.rb-empty h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.rb-empty p {
  margin: 0 0 24px;
}

/* 個別記事 */
.rb-article-hero {
  padding: 126px 0 54px;
  background:
    radial-gradient(circle at 86% 5%, rgba(47, 194, 91, .1), transparent 26%),
    linear-gradient(150deg, #f7fbfa, #fff);
  border-bottom: 1px solid var(--line);
}

.rb-article-heading {
  max-width: 900px;
  margin: 0 auto;
}

.rb-article-category {
  display: inline-flex;
  padding: 6px 13px;
  color: #fff !important;
  background: var(--teal);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.rb-article-heading h1 {
  margin: 18px 0 17px;
  color: var(--ink);
  font-size: clamp(30px, 4.3vw, 50px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .01em;
}

.rb-article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 12px;
}

.rb-article-eyecatch {
  max-width: 900px;
  margin: 36px auto -115px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(20, 38, 42, .14);
}

.rb-article-eyecatch img {
  width: 100%;
  height: auto;
  display: block;
}

.rb-article-main {
  padding: 150px 0 100px;
}

.rb-article-hero:not(:has(.rb-article-eyecatch)) + .rb-article-main {
  padding-top: 80px;
}

.rb-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 250px;
  justify-content: center;
  align-items: start;
  gap: 54px;
}

.rb-article-content-column {
  min-width: 0;
}

.rb-toc {
  margin-bottom: 48px;
  padding: 0;
  overflow: hidden;
  background: #f7fbfa;
  border: 1.5px solid #dce8e5;
  border-radius: 16px;
}

.rb-toc-heading {
  width: 100%;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rb-toc-heading span {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-weight: 800;
}

.rb-toc-heading b {
  color: var(--teal-dark);
  font-size: 10px;
  letter-spacing: .12em;
}

.rb-toc-heading i {
  font-style: normal;
  font-weight: 900;
}

.rb-toc-list {
  margin: 0;
  padding: 0 24px 20px 46px;
}

.rb-toc-list li {
  padding: 4px 0;
  color: #52615f;
  font-size: 13px;
  line-height: 1.65;
}

.rb-toc-list li.is-h3 {
  margin-left: 18px;
  font-size: 12.5px;
}

.rb-toc-list a {
  color: inherit;
  text-decoration: none;
}

.rb-toc-list a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.rb-entry {
  color: #334340;
  font-size: 16px;
  line-height: 2;
}

.rb-entry > *:first-child {
  margin-top: 0 !important;
}

.rb-entry p {
  margin: 0 0 1.55em;
}

.rb-entry h2 {
  scroll-margin-top: 100px;
  margin: 64px 0 24px;
  padding: 18px 22px;
  color: var(--ink);
  background: linear-gradient(100deg, var(--teal-tint), #f7fbfa);
  border-left: 6px solid var(--teal);
  border-radius: 0 12px 12px 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.55;
}

.rb-entry h3 {
  scroll-margin-top: 100px;
  margin: 44px 0 18px;
  padding: 0 0 10px;
  color: var(--ink);
  border-bottom: 2px solid var(--teal);
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 900;
  line-height: 1.6;
}

.rb-entry h4 {
  margin: 32px 0 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.rb-entry strong,
.rb-entry b {
  color: var(--ink);
  font-weight: 800;
}

.rb-entry a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rb-entry mark {
  padding: 0 .08em;
  background: linear-gradient(transparent 58%, #fef3a6 58%);
}

.rb-entry ul,
.rb-entry ol {
  margin: 20px 0 28px;
  padding: 20px 24px 20px 48px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.rb-entry li {
  margin: 7px 0;
}

.rb-entry blockquote {
  margin: 28px 0;
  padding: 22px 25px;
  background: var(--teal-tint);
  border-left: 5px solid var(--teal);
  border-radius: 0 13px 13px 0;
}

.rb-entry img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rb-entry figure {
  max-width: 100%;
  margin: 30px auto;
}

.rb-entry table {
  width: 100%;
  margin: 30px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #d8e2df;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.65;
}

.rb-entry th,
.rb-entry td {
  padding: 13px 15px;
  vertical-align: top;
  border-right: 1px solid #dfe7e5;
  border-bottom: 1px solid #dfe7e5;
}

.rb-entry th:last-child,
.rb-entry td:last-child {
  border-right: 0;
}

.rb-entry tr:last-child td {
  border-bottom: 0;
}

.rb-entry th {
  color: var(--ink);
  background: var(--teal-tint);
  font-weight: 800;
}

.rb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.rb-tags a {
  padding: 6px 12px;
  color: var(--teal-dark);
  background: var(--teal-tint);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.rb-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rb-share > span {
  margin-right: 5px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.rb-share a,
.rb-share button {
  padding: 7px 11px;
  color: #4d5a58;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.rb-share a:hover,
.rb-share button:hover {
  color: var(--teal-dark);
  border-color: var(--teal);
}

.rb-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}

.rb-prevnext > div:last-child {
  text-align: right;
}

.rb-prevnext a {
  min-height: 82px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.rb-prevnext a:hover {
  border-color: var(--teal);
}

.rb-prevnext small {
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
}

.rb-prevnext b {
  font-size: 12px;
  line-height: 1.55;
}

.rb-article-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 16px;
}

.rb-side-card {
  padding: 20px;
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rb-side-card > b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.rb-side-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.rb-side-card .rb-search {
  display: grid;
  margin-top: 14px;
  border-radius: 9px;
  box-shadow: none;
}

.rb-side-card .rb-search input {
  width: 100%;
  padding: 11px 12px;
  font-size: 11.5px;
}

.rb-side-card .rb-search button {
  padding: 9px;
  font-size: 11px;
}

.rb-side-links {
  display: grid;
  margin-top: 12px;
}

.rb-side-links a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  color: #52605e;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}

.rb-side-links a:last-child {
  border-bottom: 0;
}

.rb-side-links a:hover {
  color: var(--teal-dark);
}

.rb-related {
  padding: 78px 0 98px;
  background: #f7faf9;
  border-top: 1px solid var(--line);
}

.rb-section-heading {
  margin-bottom: 30px;
}

.rb-section-heading > span {
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

.rb-section-heading h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
}

.rb-bottom-cta {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 194, 91, .3), transparent 25%),
    linear-gradient(135deg, #0b807c, #075c59);
}

.rb-bottom-cta::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
}

.rb-bottom-cta .inner {
  position: relative;
  z-index: 2;
}

.rb-bottom-cta .badge-sticker {
  color: var(--teal-dark);
  background: #fff;
  border-color: #fff;
}

.rb-bottom-cta .badge-sticker::after {
  border-top-color: #fff;
}

.rb-bottom-cta h2 {
  margin: 20px 0 10px;
  color: #fff;
  font-size: clamp(27px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.5;
}

.rb-bottom-cta p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
}

.rb-bottom-cta .ctas {
  justify-content: center;
  margin-top: 28px;
}

.rb-bottom-cta .btn-teal {
  color: var(--ink);
  background: #fff;
}

.rb-bottom-cta .btn-teal:hover {
  color: #fff;
  background: var(--ink);
}

.rb-bottom-cta .btn-ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .6);
}

.rb-bottom-cta .btn-ghost:hover {
  color: var(--ink);
  background: #fff;
}

@media (max-width: 1080px) {
  .rb-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rb-article-layout {
    grid-template-columns: minmax(0, 760px) 220px;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .rb-site-hd .header-in {
    gap: 8px;
  }

  .rb-hero {
    padding: 112px 0 64px;
  }

  .rb-article-layout {
    display: block;
  }

  .rb-article-side {
    position: static;
    margin-top: 48px;
    grid-template-columns: 1fr 1fr;
  }

  .rb-article-heading h1 {
    font-size: clamp(29px, 6vw, 42px);
  }
}

@media (max-width: 640px) {
  .rexli-renewal-blog {
    font-size: 14px;
  }

  .rb-site-hd .header-cta {
    padding: 9px 11px !important;
    font-size: 11px !important;
  }

  .rb-hero {
    padding: 100px 0 48px;
  }

  .rb-hero::after {
    right: -6px;
    bottom: -8px;
    font-size: 78px;
  }

  .rb-breadcrumb {
    margin-bottom: 22px;
    font-size: 10px;
  }

  .rb-hero-copy h1 {
    margin-top: 14px;
    font-size: 32px;
  }

  .rb-hero-description {
    font-size: 13.5px;
  }

  .rb-search {
    margin-top: 20px;
  }

  .rb-search input[type="search"] {
    padding: 12px 13px;
    font-size: 12px;
  }

  .rb-search button {
    padding: 0 16px;
    font-size: 11px;
  }

  .rb-index {
    padding: 42px 0 76px;
  }

  .rb-category-nav {
    gap: 7px;
    margin-bottom: 25px;
  }

  .rb-category-nav a {
    padding: 8px 12px;
    font-size: 11px;
  }

  .rb-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rb-card-body {
    padding: 18px 18px 20px;
  }

  .rb-card-body h2,
  .rb-card-body h3 {
    font-size: 16px;
  }

  .rb-article-hero {
    padding: 98px 0 36px;
  }

  .rb-article-heading h1 {
    margin-top: 14px;
    font-size: 27px;
    line-height: 1.5;
  }

  .rb-article-eyecatch {
    margin-top: 25px;
    margin-bottom: -78px;
    border-radius: 14px;
  }

  .rb-article-main {
    padding: 110px 0 70px;
  }

  .rb-article-hero:not(:has(.rb-article-eyecatch)) + .rb-article-main {
    padding-top: 54px;
  }

  .rb-toc {
    margin-bottom: 34px;
  }

  .rb-toc-heading {
    padding: 14px 16px;
  }

  .rb-toc-list {
    padding: 0 18px 16px 35px;
  }

  .rb-entry {
    font-size: 15px;
    line-height: 1.95;
  }

  .rb-entry h2 {
    margin-top: 50px;
    padding: 14px 15px;
    font-size: 21px;
  }

  .rb-entry h3 {
    margin-top: 36px;
    font-size: 18px;
  }

  .rb-entry ul,
  .rb-entry ol {
    padding: 16px 16px 16px 38px;
  }

  .rb-entry .wp-block-table,
  .rb-entry table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .rb-entry th,
  .rb-entry td {
    min-width: 130px;
    padding: 11px 12px;
  }

  .rb-share {
    align-items: flex-start;
  }

  .rb-share > span {
    width: 100%;
  }

  .rb-prevnext {
    grid-template-columns: 1fr;
  }

  .rb-prevnext > div:last-child {
    text-align: left;
  }

  .rb-article-side {
    grid-template-columns: 1fr;
  }

  .rb-related {
    padding: 54px 0 70px;
  }

  .rb-section-heading h2 {
    font-size: 25px;
  }

  .rb-bottom-cta {
    padding: 60px 0;
  }

  .rb-bottom-cta h2 {
    font-size: 25px;
  }

  .rb-bottom-cta p {
    font-size: 12.5px;
  }

  .rb-bottom-cta .ctas {
    display: grid;
  }

  .rb-bottom-cta .btn {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-card,
  .rb-card-thumb img {
    transition: none;
  }
}
