.price {
  padding: 0 5rem 10rem;
}

@media screen and (min-width: 1440px) {
  .price {
    padding: 0 20rem 10rem;
  }
}

/* パンくずリストのスタイル */
.breadcrumb {
  font-size: 3rem;
  color: #2C4A34;
  /* 周りの文字色に合わせて調整してください */
  margin: 7rem 0;
  font-weight: bold;
}

.breadcrumb a {
  color: #2C4A34;
  text-decoration: none;
}

.breadcrumb a.return:hover,
.breadcrumb a:hover {
  opacity: 0.7;
}

.price-wrapper {
  padding: 0 10rem;
}

.price-heading {
  display: flex;
  align-items: center;
  gap: 2rem;
  border-left: 5px solid #2C4A34;
  padding-left: 2rem;
}

.price-logo {
  width: 7rem;
}

.price-title-ja {
  font-size: 3.5rem;
}

.price-title-en {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Roboto Slab", serif;
}

.price-title-en::before {
  content: "－";
  margin-right: 0.3rem;
}


.price-text {
  font-size: 2.5rem;
  font-weight: 600;
  background-color: #FFF4E5;
  border-radius: 1rem;
  width: 90%;
  padding: 0.5rem 3rem;
  margin: 10rem auto 0rem auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.price-text-item {
  display: none;

}

.price-text-item1 {
  display: none;

}

.price-text span {
  font-size: 2.7rem;
  color: #EC777C;
  margin-right: 2rem;
}

.price-table-heading {
  font-size: 2.4rem;
  color: #EC777C;
  margin: 3rem 0 3rem 5rem;
}

.price-table-heading_item {
  display: none;
}

.price-table-heading::before {
  display: inline-block;
  content: "";
  width: 3rem;
  height: 0.3rem;
  background-color: #000000;
  vertical-align: middle;
  margin-right: 1rem;
  position: relative;
  top: -0.4rem;
}

.price-table {
  font-size: 2rem;
  width: 80%;
  border-collapse: separate;
  border-spacing: 2rem 1rem;
  margin: 0 auto;
}

.price-table th,
.price-table td,
.price-table2 th,
.price-table2 td {
  padding: 1rem 0.5rem;
  text-align: center;
}

.price-table th:nth-child(odd),
.price-table td:nth-child(odd) {
  background-color: #FFF4E5;
}

.price-table th:nth-child(even),
.price-table td:nth-child(even) {
  background-color: #FFE7C4;
}

.price-table th:first-child,
.price-table td:first-child {
  width: 40%;
}

.price-table th:not(:first-child),
.price-table td:not(:first-child) {
  width: calc(60% / 3);
}

/* 施設の送迎以外で来られる方（家族送迎等）は下記の通り減額となります。 */

.price-table2 {
  font-size: 2rem;
  width: 60%;
  border-collapse: separate;
  border-spacing: 2rem 1rem;
  margin: 0 auto;
  table-layout: fixed;
}

.price-table2 th:nth-child(odd),
.price-table2 td:nth-child(odd) {
  background-color: #FFE7C4;
}

.price-table2 th:nth-child(even),
.price-table2 td:nth-child(even) {
  background-color: #FFF4E5;
}

.price-table-heading2 {
  font-size: 2.4rem;
  margin: 3rem 0;
  text-align: center;
}

.price-table-heading3 {
  font-size: 2.4rem;
  margin: 3rem 0;
  text-align: center;

}

/* 改行用のspanタグは文字色がピンクにならないように色を指定する */
.price-table-heading2_item {
  display: inline;

}

/* 「●」が入っている最初のspanだけにピンク色を適用する */
.price-table-heading2>span:first-child {
  color: #EC777C;
  margin-right: 1rem;
}

.price-table-heading2 span {
  /* color: #EC777C; */
  margin-right: 1rem;
}

.price-table-heading3 span {

  margin-right: 1rem;
}

.price-table-heading3 {
  font-size: 2.4rem;
  margin: 3rem 0;
  /* display: flex;
justify-content: center; */
  text-align: left;
  margin-left: 12rem;
}

.price-table-heading3 span {
  color: #EC777C;
  margin-right: 1rem;
}

/* PCサイズではスマホ専用のセルを非表示にする */
.sp-only-td {
  display: none;
}


.price-table th,
.price-table td,
.price-table2 th,
.price-table2 td {
  font-weight: bold;
}

@media screen and (max-width: 1024px) {
  .breadcrumb {
    font-size: 2.5rem;
  }

  .price-wrapper{
    padding: 0;
  }

  .price-title-ja {
    font-size: 3rem;
  }

  .price-title-en {
    font-size: 2rem;

  }

  .price-logo {
    width: 6rem;
  }

  .price-table th,
  .price-table td,
  .price-table2 th,
  .price-table2 td {
    padding: 1rem 0.5rem;

  }

  .price-table2 {
    font-size: 1.4rem;
  }

  .price-text {
    font-size: 1.9rem;
    margin-top: 5rem;
  }

  .price-table {

    font-size: 1.3rem;
  }

  .price-table-heading {
    font-size: 2.2rem;

  }

  .price-table-heading::before {
    width: 2rem;
  }

  .price-table-heading2 {
    font-size: 1.85rem;
  }

}

/* ==========================================
   768px以下のレスポンシブ（縦積みカード化）設定
========================================== */
@media screen and (max-width: 768px) {

  /* --- 全体余白・見出しの調整 --- */
  .price {
    padding: 0 5rem 10rem 5rem;
  }

  .breadcrumb {
    font-size: 2.4rem;
    margin: 5rem 0;
  }

  .price-logo {
    width: 6rem;
  }

  .price-heading {
    padding-left: 2rem;
    border-left: 5px solid #2C4A34;
  }

  .price-title-ja {
    font-size: 3rem;
  }

  .price-title-en {
    font-size: 2.4rem;
  }

  .price-text {
    font-size: 2.1rem;
    width: 100%;
    margin: 4rem auto 2rem;

    padding: 1rem 1.5rem;

    display: flex;
    justify-content: center;
    text-align: center;
    align-items: flex-start;
  }



  .price-text-item1 {
    display: block;

  }

  .price-text span {
    font-size: 1.8rem;
    margin-right: 1rem;
  }

  .price-table-heading {
    font-size: 2.3rem;
    margin: 3rem 0 1.5rem 1rem;
    /* 全ての行を「―」の右（タイトル文字の開始位置）から始める：::before の幅2rem＋余白1rem */
    padding-left: 3rem;
  }

  /* 「―」だけを左余白の中へ引き出す */
  .price-table-heading::before {
    margin-left: -3rem;
  }

  .price-table-heading_item {
    display: block;
  }

  .price-table-heading3 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1.5rem 0;
    text-align: center;
  }

  .price-table-heading2 {
    font-size: 1.7rem;
    margin: 3rem 0 1.5rem;
    text-align: left;

  }

  /* ●の幅をフォントに関係なく1emに固定する */
  .price-table-heading2>span:first-child {
    display: inline-block;
    width: 1em;
  }

  .price-table-heading2_item {
    display: block;
    /* 2行目を「施」の真下に揃える：●の幅1em＋余白1rem */
    margin-left: calc(1em + 1rem);
  }

  /* --- テーブルの縦積み設定 --- */
  .price-table,
  .price-table2 {
    width: 85%;
    max-width: 480px;
    border-spacing: 0;
    margin: 0 auto 3rem auto;
    display: block;
  }

  .price-table tbody,
  .price-table2 tbody {
    display: block;
    width: 100%;
  }

  /* ヘッダー行を非表示 */
  /* .price-table tr:first-child,
    .price-table2 tr:first-child {
        display: none;
    } */

  .price-table tr,
  .price-table2 tr {
    display: block;
    margin-bottom: 2.5rem;
  }

  /* 項目名（左側の見出し） */
  .price-table th,
  .price-table2 th {
    display: block;
    width: 100% !important;
    font-size: 1.7rem;
    font-weight: bold;
    padding: 1.2rem;
    margin-bottom: 0.8rem;
    text-align: center;
    background-color: #FFF4E5;
    color: #2C4A34;
    border-bottom: 1px solid #FFE7C4;
  }

  /* すべてのデータセル共通の縦積みスタイル */
  .price-table td,
  .price-table2 td {
    display: block;
    width: 100% !important;
    font-size: 1.7rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
    text-align: center;
    background-color: #FFE7C4;
    border-bottom: 1px dashed #eee;
  }

  .price-table td:last-child,
  .price-table2 td:last-child {
    border-bottom: none;
  }


  /* ==========================================
       【重要】通常のテーブルセルに自動で文字を付与
       （ただし加算行の .sp-only-td や実費などは除外）
    ========================================== */

  /* 基本料金などのテーブル（4列）で、sp-only-td を含まない行のセルに自動付与 */
  .price-table tr:not(:has(.sp-only-td)) td:nth-child(2):not([colspan])::after {
    content: "（1割負担）";
  }

  .price-table tr:not(:has(.sp-only-td)) td:nth-child(3):not([colspan])::after {
    content: "（2割負担）";
  }

  .price-table tr:not(:has(.sp-only-td)) td:nth-child(4):not([colspan])::after {
    content: "（3割負担）";
  }

  /* 送迎減額テーブル (price-table2) に自動付与 */
  .price-table2 tr td:nth-child(1)::after {
    content: "（1割負担）";
  }

  .price-table2 tr td:nth-child(2)::after {
    content: "（2割負担）";
  }

  .price-table2 tr td:nth-child(3)::after {
    content: "（3割負担）";
  }


  /* --- 加算セクション用の設定（HTMLで個別に入れた部分） --- */

  /* PC用の横長セルはスマホでは非表示 */
  .pc-only-td {
    display: none !important;
  }

  /* スマホ用の3行分のセルを縦並びにきれいに整える */
  .sp-only-td {
    display: block !important;
    width: 100% !important;
    font-size: 2.4rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
    text-align: center;
    background-color: #FFE7C4;
    border-bottom: 1px dashed #eee;
  }

  .sp-only-td:last-child {
    border-bottom: none;
  }

  .price-table.cost-table tr td::after {
    content: none !important;
  }

  .price-table-wrapper2 {

    display: none !important;
  }
}

@media screen and (max-width: 480px) {

  .price {

    padding: 0 2rem 5rem 2rem;
  }

  .breadcrumb {
    font-size: 1.8rem;
    margin: 4rem 0;
  }

  .price-table th,
  .price-table td,
  .price-table2 th,
  .price-table2 td {
    font-size: 1.5rem;
  }

  .price-logo {
    width: 5rem;
  }

  .price-heading {
    padding-left: 2rem;
    border-left: 5px solid #2C4A34;
    gap: 2rem;
  }

  .price-title-ja {
    font-size: 2.3rem;
  }

  .price-title-en {
    font-size: 16px;
  }

  .price-text {
    font-size: 1.9rem;

    margin-top: 6rem;

    width: 85%;
    /* テーブルと同じ 85% にする */
    max-width: 480px;
    /* テーブルと同じ上限幅にする */
    text-align: left;
  }

  .price-text-item {
    display: block;

  }

  .price-text span {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    line-height: 1.8;
    /* ← 必要に応じて行の高さを合わせるとより綺麗になります */

  }



  .price-table-heading {
    font-size: 1.8rem;
    margin: 5rem 0;
    /* ::before の幅16px＋余白1rem */
    padding-left: calc(16px + 1rem);
  }

  .price-table-heading::before {
    width: 16px;
    height: 3px;
    margin-left: calc(-16px - 1rem);
  }

  .price-table-heading2 {
    font-size: 1.5rem;
    margin: 5rem 0;
  }

  .price-table-heading3 {
    font-size: 1.7rem;
    margin: 20px 0;
    text-align: center;
  }
}