/* ==========================================================================
   ノムラリハビリステーション(nomura-st) — /nomura-st/index.php 専用
   ========================================================================== */

.page-nomura-st main {
  overflow-x: visible;
}

/* ==========================================================================
   FV
   ========================================================================== */

.rehab-fv {
  margin-top: 40px;
  margin-bottom: 80px;
}

.rehab-fv__grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  grid-template-areas:
    "title  photo"
    "lead   photo"
    "actions photo";
  column-gap: 0;
  align-items: center;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 1084px;
  max-width: calc(100vw - 40px);
}

.rehab-fv__photo {
  grid-area: photo;
  align-self: stretch;
  transform: scale(1.1);
  transform-origin: right center;
}

.rehab-fv__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.rehab-fv__title {
  grid-area: title;
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: var(--color-primary);
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  transform: translateX(30px);
}

.rehab-fv__title::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -40px;
  bottom: -20px;
  left: -24px;
  z-index: -1;
  background-color: var(--color-bg);
  border-radius: 16px;
}

.rehab-fv__lead {
  grid-area: lead;
  margin: 0;
  text-align: left;
  font-size: 1.25rem;
  line-height: 1.7;
  transform: translateX(30px);
}

.rehab-fv__actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  transform: translateX(30px);
}

/* ==========================================================================
   ノムラリハビリステーションの特徴
   ========================================================================== */
.rehab-feature {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-block: 64px 130px;
  background-color: color-mix(in srgb, var(--color-accent) 12%, var(--color-bg));
}

.rehab-feature__inner {
  position: relative;
  max-width: var(--width-content-gutter);
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}

.rehab-feature__illust {
  position: absolute;
  pointer-events: none;
}

img.rehab-feature__illust--1 {
  top: -108px;
  left: 0;
  width: 144px;
  height: auto;
}

.rehab-feature__title {
  margin-bottom: 48px;
}

.rehab-feature__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: left;
}

.rehab-feature__item {
  position: relative;
}

.rehab-feature__item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border-radius: 12px;
}

.rehab-feature__item h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
}

img.rehab-feature__illust--2 {
  right: -112px;
  bottom: -54px;
  width: 127px;
  height: auto;
}

/* ==========================================================================
   セクション見出しピル(共通)
   ========================================================================== */
.rehab-pill-row {
  position: relative;
  z-index: 2;
  top:-50px;
  /* margin-bottom: -34px; */
  text-align: center;
}

/* 「プログラム内容」ピルのみ */
.rehab-pill-row--seam {
  top: 0;
  transform: translateY(-50%);
}

.rehab-pill-row--seam .rehab-pill {
  margin-top: 0;
}

/* 「プログラム紹介」ピルのみ */
.rehab-pill-row--seam-intro {
  top: -56px;
  transform: translateY(-50%);
}

.rehab-pill-row--seam-intro .rehab-pill {
  margin-top: 0;
}

.rehab-pill {
  width: var(--width-content);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 80px;
  padding: 17px 56px;
  background-color: var(--color-bg);
}

.rehab-pill--outline {
  box-shadow: none;
  border: 2px solid var(--color-primary);
}

.rehab-pill--navy {
  background-color: var(--color-primary);
}

/* 出現順 */
.rehab-pill--odd {
  border-radius: 0 50px 50px 0;
}

.rehab-pill--even {
  border-radius: 50px 0 0 50px;
}

.rehab-pill__eyebrow {
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.15em;
  line-height: 1.2; /* body の line-height:1.7 の余分な行間を除去 */
}

.rehab-pill--navy .rehab-pill__eyebrow {
  color: var(--color-bg);
}

.rehab-pill__title {
  color: var(--color-primary);
  font-size: 2.1875rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.rehab-pill--navy .rehab-pill__title {
  color: var(--color-bg);
}

/* ==========================================================================
   帯セクション共通(プログラム内容・ご利用方法) — フルブリード背景。
   ========================================================================== */
.rehab-band {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.rehab-band--content {
  padding-bottom: 100px;
  background-color: var(--color-primary);
  background-image: url("../../img/nomura-st/no-pattern-st.png");
  background-repeat: repeat;
  background-size: 80%;
}

.rehab-band--howto {
  padding-block: 64px 90px;
  background-color: color-mix(in srgb, var(--color-primary) 5%, var(--color-bg));
}

.rehab-band__inner {
  max-width: var(--width-content-gutter); 
  margin-inline: auto;
  padding-inline: 20px;
}

.rehab-band__lead {
  margin: 0 0 40px;
  color: var(--color-bg);
  font-size: 1.25rem;
  line-height: 1.9;
}

.rehab-band__lead--dark {
  margin-top: 24px;
  color: var(--color-text);
  text-align: center;
}

.rehab-notice {
  margin: 0 auto;
  padding: 4px 24px;
  max-width: 720px;
  background-color: var(--color-accent);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 1.5625rem;
  font-weight: var(--font-weight-medium);
  text-align: center;
}

.rehab-band__note {
  margin: 80px 0;
  text-align: center;
  font-size: 1.125rem;
}

.rehab-band__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- プログラムカード(2x2) --- */
.rehab-program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}

.rehab-program-card {
    padding: 15px;
    background-color: var(--color-bg);
    border-radius: 16px;
  }

.rehab-program-card img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border-radius: 12px;
}

.rehab-program-card h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
}

.rehab-program-card p {
  margin: 0;
}

/* ==========================================================================
   プログラム紹介(白背景)
   ========================================================================== */
.rehab-intro {
  padding-top: 64px;
}

.rehab-intro__inner {
  max-width: var(--width-content); 
  margin-inline: auto;
}

.rehab-program-type {
  margin-bottom: 70px;
}

.rehab-program-type:last-child {
  margin-bottom: 90px;
}

.rehab-program-type__time {
  margin: 12px 0 30px;
  font-size: 1.0625rem;
  font-weight: var(--font-weight-bold);
}

/* SPのみ午前/午後を2行に分ける */
.rehab-program-type__time-break {
  display: none;
}

.rehab-program-type__body {
  display: grid;
  grid-template-columns: minmax(0, 470px) 1fr;
  gap: 40px;
  align-items: start;
}

.rehab-program-type__photos {
  display: flex;
  flex-direction: column;
}

.rehab-program-type__photos img + img {
  margin-top: 15px;
}

.rehab-program-type__photos img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* SP専用 */
.rehab-intro__photo-mobile {
  display: none;
}

/* --- 手順リスト(●番号付き) --- */
.rehab-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rehab-steps li {
  position: relative;
  margin: 0 0 55px;
  padding-left: 22px;
}

.rehab-steps li:last-child {
  margin-bottom: 0;
}

.rehab-steps li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.rehab-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 17.5px;      /* 丸(top:10px, height:15px)の中心 */
  bottom: -67.5px;  /* margin-bottom(50px) + 次のliの丸の中心(17.5px) */
  left: 7px;        /* 丸(left:0, width:15px)の中心 */
  width: 1px;
  background-color: var(--color-primary);
}

.rehab-steps li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
}

.rehab-steps li span {
  display: block;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- 見学当日の流れ --- */
.rehab-steps--plain li {
  padding-left: 20px;
  font-size: 1.125rem;
  line-height: 1.7;
}

.rehab-steps--plain li::before {
  width: 15px;
  height: 15px;
}

/* --- 見出しバー(要支援/要介護プログラム、白カードのタイトル) --- */
.rehab-bar-label {
  display: inline-block;
  margin: 0 0 4px;
  padding: 4px 32px;
  background-color: var(--color-primary);
  border-radius: 999px;
  color: var(--color-bg);
  font-size: 1.5625rem;
  font-weight: var(--font-weight-bold);
  text-align: center;
}

.rehab-bar-label--program {
  border-radius: 0 31px 31px 0;
}

.rehab-bar-label--card,
.rehab-bar-label--full {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  margin: 0;
  font-weight: var(--font-weight-medium);
}

/* --- 白カード(見学のお申込み・見学当日の流れ・ご利用と介護保険について) --- */
.rehab-card {
  position: relative;
  margin-top: 100px;
  padding: 70px 40px 40px;
  background-color: var(--color-bg);
  border-radius: 24px;
  box-shadow: 5px 5px 2px rgb(0 95 167 / 0.75);
}

.rehab-card:first-of-type {
  margin-top: 100px;
}

.rehab-card__text {
  margin: 0 0 24px;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.8;
}

.rehab-card__tel {
  margin: 0;
  text-align: center;
}

.rehab-card__tel a {
  color: var(--color-primary);
  font-size: 2.125rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

.rehab-card--flow .rehab-card__flow-body {
  display: grid;
  grid-template-columns: 1fr 355px;
  gap: 40px;
  align-items: end;
}

.rehab-card--flow img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.rehab-minibox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.rehab-minibox {
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-bg));
  border-radius: 8px;
  overflow: hidden;
}

.rehab-minibox__header {
  margin: 0;
  padding: 10px 16px;
  background-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-bg));
  color: var(--color-bg);
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
}

.rehab-minibox p:not(.rehab-minibox__header) {
  margin: 0;
  padding: 16px;
}

/* ==========================================================================
   施設・設備紹介
   ========================================================================== */
.rehab-facilities {
  padding-top: 64px;
  padding-bottom: 72px;
}

.rehab-facilities__inner {
  max-width: var(--width-content-gutter); 
  margin-inline: auto;
}

.rehab-facilities__item {
  margin-bottom: 48px;
}

.rehab-facilities__item:last-child {
  margin-bottom: 0;
}

.rehab-facilities__item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 20px;
  border-radius: 16px;
}

.rehab-facilities__item h3 {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
}

.rehab-facilities__item p {
  margin: 0;
}

/* ==========================================================================
   アクセス
   ========================================================================== */
.rehab-access {
  max-width: var(--width-content-gutter); 
  margin-inline: auto;
  padding: 0 0 96px;
  text-align: center;
}

.rehab-access__title {
  margin-bottom: 40px;
}

.rehab-access__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  align-items: stretch;
}
.rehab-access__body .btn{
  margin-top:70px;
}

.rehab-access__map {
  min-height: 320px;
  background-color: color-mix(in srgb, var(--color-text-sub) 15%, var(--color-bg));
  border-radius: 12px;
  overflow: hidden;
}

.rehab-access__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.rehab-access__info h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
}

.rehab-access__address,
.rehab-access__note {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* ==========================================================================
   タブレット〜小さめPC(max-width: 1124px)
   ========================================================================== */

@media (max-width: 1124px) {
  .rehab-fv__photo {
    transform: none;
  }

  .rehab-fv__title,
  .rehab-fv__lead,
  .rehab-fv__actions {
    transform: none;
  }

  img.rehab-feature__illust--1 {
    top: -90px;
    left: 90px;
    width: 75px;
  }

  img.rehab-feature__illust--2 {
  right: 40px;
  bottom: -52px;
  width: 66px;
  }

}

/* ==========================================================================
   SP(max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body.page-nomura-st {
    padding-bottom: 0;
  }

  .rehab-fv {
    margin-top: -20px;
    margin-bottom: 0;
    min-height: calc(100vh - var(--header-height-sp));
    min-height: calc(100svh - var(--header-height-sp));
    display: flex;
    align-items: center;
  }

  .rehab-fv__grid {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    grid-template-rows: auto auto auto;
    row-gap: 0;
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
  }

  .rehab-fv__photo {
    grid-row: 1;
    grid-column: 1;
    margin-inline: -10px;
    width: calc(100% + 20px);
  }

  .rehab-fv__title {
    grid-row: 1;
    grid-column: 1;
    align-self: end;
    justify-self: start;
    margin: 0 0 20px 4px;
    font-size: 1.375rem;
  }

  .rehab-fv__title::before {
    top: -8px;
    right: -20px;
    bottom: -8px;
    left: -16px;
    border-radius: 0 12px 12px 0;
  }

  .rehab-fv__lead {
    grid-row: 2;
    grid-column: 1;
    margin-top: 30px;
    padding: 0 8px;
    text-align: center;
    font-size: 1.25rem;
  }

  .rehab-fv__actions {
    grid-row: 3;
    grid-column: 1;
    align-items: center;
    margin-top: 24px;
  }

  .rehab-fv__actions .btn {
    width: 64%;
    max-width: 320px;
  }

  .rehab-feature {
    padding: 48px 0 70px;
  }

  img.rehab-feature__illust--1 {
    display: none;
  }

  .rehab-feature__title {
    margin-bottom: 32px;
    font-size: 1.4375rem;
  }

  .rehab-feature__item h3 {
  font-size: 1.25rem;
}

  .rehab-feature__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  img.rehab-feature__illust--2 {
    display: none;
  }

  .rehab-pill-row {
    margin-bottom: -44px;
    text-align: left;
  }

  .rehab-pill-row--seam {
    top: -40px;
  }

  .rehab-pill-row--seam-intro {
    top: -40px;
  }

  .rehab-pill {
    width: calc(100vw - 10px);
    margin-left: 0;
    margin-top: 60px;
    padding: 7px 32px;
  }

  .rehab-pill__eyebrow {
    font-size: 0.8125rem;
}

  .rehab-pill__title {
    font-size: 1.4375rem;
  }

  .rehab-bar-label {
    padding: 8px 32px;
    font-size: 1rem;
}

.rehab-bar-label--card, .rehab-bar-label--full{
    padding: 8px;
    width: 75%;
    border-radius: 14px;
    padding: 8px;
}

  .rehab-bar-label--program {
  font-size:1.25rem;
}
  .rehab-band {
    padding-top: 48px;
  }

  .rehab-band--content {
    padding-bottom: 85px;
    background-size: 400%;
  }

  .rehab-band--howto {
    padding-bottom: 48px;
  }

  .rehab-band__lead {
    margin-bottom: 44px;
  }

  .rehab-band__actions {
    flex-direction: column;
    align-items: center;
  }

  .rehab-notice {
    margin: 20px auto 25px;
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 14px;
  }


  .rehab-program-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .rehab-program-card {
    background-color: var(--color-bg);
    border-radius: 16px;
  }

  .rehab-intro {
    padding-top: 48px;
  }

  .rehab-program-type {
    margin-bottom: 40px;
  }

  .rehab-program-type:last-child {
    margin-bottom: 50px;
  }

  .rehab-program-type__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rehab-program-type__photos img.rehab-program-type__photo--sp-hide {
    display: none;
  }

  .rehab-program-type__time-break {
    display: block;
  }

  .rehab-program-type__time {
    text-align: center;
    margin: 12px 0 0;
  }

  .rehab-steps {
    margin: 0 0 40px 0;
  }

  .rehab-intro__photo-mobile {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0 0 24px;
  }

  .rehab-card {
    padding: 64px 15px 24px 15px;
    margin-top: 70px;
  }

  .rehab-card:first-of-type {
    margin-top: 70px;
}

  .rehab-card__tel a {
    font-size: 1.5rem;
  }

  .rehab-card--flow .rehab-card__flow-body {
    grid-template-columns: 1fr;
  }

  .rehab-minibox__header {
    padding: 10px;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
}

  .rehab-minibox-grid {
    grid-template-columns: 1fr;
  }

  .rehab-facilities {
    padding-block: 48px 100px;
  }

  .rehab-facilities__item {
    margin-bottom: 40px;
  }

  .rehab-access {
    padding-bottom: 64px;
  }

  .rehab-access__title {
    font-size: 1.4375rem;
  }

  .rehab-access__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .rehab-access__map {
    min-height: 240px;
  }

  .rehab-access__map iframe {
    min-height: 240px;
  }

  .rehab-access__info {
    text-align: left;
  }

  .rehab-access__info .btn {
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
}
