/*
Theme Name: singleton accelight ct system 20250722
Theme URI: http://accelight.co.jp/
Author: Accelight　Inc.
Author URI: http://accelight.co.jp/
Description: CT System Template.
Tags: none
Text Domain: none
*/

.contact-link-btns {
  display: flex;
  justify-content: center;
  padding: 20px 0 30px 0;
  flex-wrap: wrap;
}
.contact-link-btns > div {
  margin: 0 20px 20px 20px;
  width: 360px;
}
.contact-link-btns .btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px 0;
  cursor: pointer;
  text-decoration: none;
  padding: 20px 40px;
  color: #fff;
  border-radius: 10px;
  width: 100%;
}
.contact-link-btns .btn:hover {
  opacity: 0.8;
}
.contact-link-btns .btn .text span:first-child {
  font-size: 30px;
}
.contact-link-btns .btn .text span:last-child {
  font-size: 24px;
}
.contact-link-btns .btn .arrow-icon img {
  width: 20px;
}
.contact-link-btns a.btn01 {
  background-image: linear-gradient(to bottom, #67d114 0%, #096a00 100%);
}
.contact-link-btns a.btn02 {
  background-image: linear-gradient(to bottom, #fe9500 0%, #be5700 100%);
}
.contact-link-btns .tel-info {
  text-align: center;
}
.contact-link-btns .tel-info a {
  color: orange;
  text-decoration: underline;
}
@media screen and (max-width: 480px) {
  .contact-link-btns > div {
    margin: 0;
  }
}
@media screen and (max-width: 400px) {
  .contact-link-btns .btn .text span:first-child {
    font-size: 24px;
  }
  .contact-link-btns .btn .text span:last-child {
    font-size: 18px;
  }
}

.contact .mod-contact-item:nth-child(2) {
  max-width: 390px;
}

.contact-top .mod-contact-item:nth-child(2) {
  max-width: 100%;
}

@media screen and (max-width: 767px) {
  .contact .mod-contact-item:nth-child(2) {
    max-width: 100%;
  }
}

/*
  .contact .wp-general .mod-contact:first-child .mod-contact-box .mod-contact-item:first-child{
    width: calc(100% - 430px) !important;
  }
  .contact .wp-general .mod-contact:first-child .mod-contact-box .mod-contact-item:last-child{
    width: 400px !important;
  }
    */
.mod-contact-mail > a > span::before {
  position: static !important; /* positionプロパティをデフォルトに戻す */
  top: auto !important; /* デフォルトに戻す */
  left: auto !important; /* デフォルトに戻す */
  width: auto !important; /* デフォルトの幅 */
  height: auto !important; /* デフォルトの高さ */
  margin-top: 0 !important; /* マージンをリセット */
  border: none !important; /* 枠線のリセット */
}

.mod-contact-mail > a > span::before {
  content: "▶" !important; /* 三角形を表示 */
  color: #5d615b; /* 色を黒に設定 */
  margin-right: 6px; /* テキストとの間にスペースを作成 */
  display: inline-block !important;
  font-size: 0.9em;
}

.nav-global .nav-global-list-02 li.nav06 a {
  position: relative;
  display: block;
  line-height: 1.4;
}

.nav-global .nav-global-list-02 li.nav06 a::after {
  content: "NEW";
  background-color: red;
  font-weight: bold;
  margin-left: 60px;
  position: absolute;
  font-size: 10px;
  color: #fff;
  padding: 1px 2px;
  top: 3px;
}

.home .top-banner {
  padding: 50px 30px 0 20px;
  margin: 0 auto 50px auto;
  max-width: 800px;
  width: 100%;
}

.home .top-banner a {
  display: block;
  position: relative;
}

.home .top-banner a:hover {
  opacity: 0.8;
}

.home .top-banner img {
  width: 100%;
}

.home .top-banner .pc-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  opacity: 0;
}

@media screen and (max-width: 767px) {
  .home .top-banner {
    padding: 20px 10px 0 10px;
    max-width: 350px;
  }
  .home .top-banner .pc-new {
    width: 65px;
  }
}

.fureaiclub .box-cat-top-list {
  margin-bottom: 10px;
}

.fureaiclub .box-cat-top-list li:nth-child(4) {
  text-align: center;
}

.fureaiclub .box-cat-top-list li:nth-child(4) .sp-banner {
  display: none;
}

.fureaiclub .box-cat-top-list li:nth-child(4) a {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.fureaiclub .box-cat-top-list li:nth-child(4) a:hover {
  opacity: 0.8;
}

.fureaiclub .box-cat-top-list li:nth-child(4) img {
  max-width: 800px;
  width: 100%;
}

.fureaiclub .box-cat-top-list li:nth-child(4) .pc-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
}

@media screen and (max-width: 1279px) {
  .fureaiclub .box-cat-top-list li:nth-child(4) {
    margin: 20px 0;
  }
}

@media screen and (max-width: 767px) {
  .fureaiclub .box-cat-top-list li:nth-child(4) img {
    max-width: 350px;
  }
  .fureaiclub .box-cat-top-list li:nth-child(4) .pc-new {
    width: 65px;
  }
}

@media screen and (max-width: 480px) {
  .fureaiclub .box-cat-top-list li:nth-child(4) .sp-banner {
    display: block;
  }
  .fureaiclub .box-cat-top-list li:nth-child(4) .pc-banner {
    display: none;
  }
  .fureaiclub .box-cat-top-list li:nth-child(4) a {
    max-width: 350px;
    margin: 30px auto;
  }
}

.news .mod-contact-multi .mod-contact-title {
  color: #4e9231;
}

ul.mod-news-archive-list .news-archive-single {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 20px 0;
}

ul.mod-news-archive-list .news-archive-single time {
  line-height: 1.5;
}

ul.mod-news-archive-list .news-archive-single .news-archive-title {
  line-height: 1.5;
}

.news ul.mod-news-archive-list .news-archive-single .news-ico {
  min-width: 200px;
  font-size: 12px;
  margin: 0 20px 0 0;
}

@media screen and (max-width: 1279px) {
  .container {
    padding-bottom: 30px;
  }
  ul.mod-news-archive-list .news-archive-single {
    flex-wrap: wrap;
  }
  ul.mod-news-archive-list .news-archive-single .news-archive-title {
    width: 100%;
    margin-top: 10px;
  }
  ul.mod-news-archive-list .news-archive-single time {
    min-width: 3.8em;
  }
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* アコーディオンリンクのスタイル */
.funeral.plan-single .box-cmn-ceremony.about .links .link {
  cursor: pointer;
  transition: all 0.3s ease;
}

.funeral.plan-single .box-cmn-ceremony.about .links .link:hover {
  opacity: 0.8;
}

/* 点滅 */
.blinking {
  -webkit-animation: blink 1.5s ease-in-out infinite alternate;
  -moz-animation: blink 1.5s ease-in-out infinite alternate;
  animation: blink 1.5s ease-in-out infinite alternate;
  animation-delay: 0.5s;
}
@-webkit-keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@-moz-keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#site_footer .footer-inner .footer-contents .footer-nav > ul > li > a span {
  display: inline-block;
}

#site_footer
  .footer-inner
  .footer-contents
  .footer-nav
  > ul
  > li
  > a
  span:last-child {
  position: relative;
}

#site_footer
  .footer-inner
  .footer-contents
  .footer-nav
  > ul
  > li:nth-child(11)
  > a
  span:last-child:after {
  content: "NEW";
  background-color: red;
  font-weight: bold;
  margin-left: 3px;
  position: absolute;
  font-size: 10px;
  color: #fff;
  padding: 1px 2px;
  top: 0;
}

@media screen and (max-width: 767px) {
  #site_footer
    .footer-inner
    .footer-contents
    .footer-nav
    > ul
    > li:nth-child(11)
    > a::after {
    top: 10px;
  }
}

.wp-pagenavi {
  margin: 60px auto;
  display: flex;
  justify-content: center;
}
.wp-pagenavi .page {
  display: flex; /* フレックスボックスを使用 */
  justify-content: center; /* 水平方向に中央揃え */
  align-items: center; /* 垂直方向に中央揃え */
  width: 42px;
  height: 42px;
  border: solid 1px #c4c4c4;
  border-radius: 50%; /* 円形にする */
  margin: auto 6px;
  transition: 0.3s ease-out;
}
.wp-pagenavi .page:hover {
  background: #c4c4c4;
}
.wp-pagenavi .current {
  display: flex; /* フレックスボックスを使用 */
  justify-content: center; /* 水平方向に中央揃え */
  align-items: center; /* 垂直方向に中央揃え */
  width: 42px;
  height: 42px;
  color: #262628 !important;
  background: #e3e3e3 !important;
  border: solid 1px #c4c4c4;
  border-radius: 21px;
  margin: auto 6px;
}
.wp-pagenavi a {
  color: #262628;
}
.wp-pagenavi span.current {
  color: #262628 !important;
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink,
.wp-pagenavi .extend,
.wp-pagenavi .first,
.wp-pagenavi .last {
  line-height: 42px;
  margin: auto 8px;
  transition: 0.3s ease-out;
  border: none;
}
.wp-pagenavi .previouspostslink:hover,
.wp-pagenavi .nextpostslink:hover,
.wp-pagenavi .first:hover,
.wp-pagenavi .last:hover {
  color: #262628;
}

.archive-content .news-ico-new {
  display: inline-block;
  background-color: #83af66;
  color: #fff;
  padding: 5px 10px;
  position: absolute;
  margin-bottom: 10px;
  left: 0;
  top: -14px;
  min-width: 120px;
}

.archive-content .news-ico-new a {
  color: #fff;
  background-color: #83af66;
  height: 20px;
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
}

.archive-content .news-ico-new a::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 0px;
  height: 0px;
  margin: auto;
  border-left: 20px solid #83af66;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  top: 0;
  font-size: 12px;
}

@media screen and (max-width: 480px) {
  .archive-content .news-ico-new a {
    font-size: 12px;
  }
  body {
    font-family: "游ゴシック体", YuGothic, "ヒラギノ角ゴ ProN W3",
      "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  }

  h2,
  h3,
  strong,
  p,
  a,
  ul {
    font-family: "游ゴシック体", YuGothic, "ヒラギノ角ゴ ProN W3",
      "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  }
}

.fureai-top-btn {
  display: block;
  position: fixed;
  right: 20px;
  bottom: 104px;
  width: 68px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.5s ease 0s;
  font-family: "游ゴシック体", YuGothic, "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.fureai-top-btn.fade {
  opacity: 1;
}

.fureai-top-btn.visible {
  display: block;
}

.home .top-banner img,
.fureai-top-btn img {
  font-family: "游ゴシック体", YuGothic, "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
}

.fureai-present form tr:nth-child(9) td span {
  display: inline-block;
}

/*  */
.funeral.s-plan .contents-main-column p,
.funeral.plan-single .contents-main-column p {
  line-height: 1.7;
  color: #262628;
}

.funeral.s-plan .plan-thumbnail {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 10px;
}

.funeral.s-plan .plan-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.funeral.s-plan #sapporomonami {
  margin-top: 20px;
}

.funeral.s-plan .sankaninzu-plans,
.funeral.s-plan .ordermade-plans,
.funeral.s-plan .ippansou-plans,
.funeral.s-plan .kazokusou-plans {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
  align-items: stretch; /* 同じ行のアイテムの高さを揃える */
}

.funeral.s-plan .plan-item {
  display: inline-flex;
  flex-direction: column;
  width: 48%;
  margin-right: 4%;
  margin-bottom: 30px;
  padding: 15px;
  border: 1px solid #451a8c;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  container-type: inline-size;
}

.funeral.s-plan .sankaninzu-plans .plan-item:hover,
.funeral.s-plan .ordermade-plans .plan-item:hover,
.funeral.s-plan .ippansou-plans .plan-item:hover,
.funeral.s-plan .kazokusou-plans .plan-item:hover {
  opacity: 0.8; /* ホバー時の透明度を変更 */
}

.funeral.s-plan .plan-item .banner-wrap {
  position: absolute;
  left: 0;
}

.funeral.s-plan .sankaninzu-plans .plan-item .banner,
.funeral.s-plan .ordermade-plans .plan-item .banner,
.funeral.s-plan .ippansou-plans .plan-item .banner,
.funeral.s-plan .kazokusou-plans .plan-item .banner {
  position: absolute;
  background: linear-gradient(
    90deg,
    #7c5eae 0%,
    #7c5eae 50%,
    transparent 50%,
    transparent 100%
  );
  color: #fff;
  left: 0;
  position: relative;
  overflow: hidden;
  padding-right: 30px;
  padding-left: 15px;
  z-index: 10;
  width: 250px;
  top: 20px;
  font-size: 15px;
  font-weight: bold;
  padding-top: 3px;
}

.funeral.s-plan .sankaninzu-plans .plan-item .banner::after,
.funeral.s-plan .ordermade-plans .plan-item .banner::after,
.funeral.s-plan .ippansou-plans .plan-item .banner::after,
.funeral.s-plan .kazokusou-plans .plan-item .banner::after {
  position: absolute;
  content: "";
  top: -150%;
  left: 45px;
  width: 175px;
  height: 300%;
  transform: rotate(25deg);
  background: #7c5eae;
  z-index: -1;
}

@media screen and (max-width: 767px) {
  .single.s-plan .box-cmn-ceremony-title {
    font-size: 20px;
  }

  .funeral.s-plan .sankaninzu-plans,
  .funeral.s-plan .ordermade-plans,
  .funeral.s-plan .ippansou-plans,
  .funeral.s-plan .kazokusou-plans,
  .sankaninzu-plans,
  .ordermade-plans,
  .ippansou-plans,
  .kazokusou-plans {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .funeral.s-plan .plan-item,
  .plan-item {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 30px !important;
    /*
    min-height: 400px;
    */
  }

  .funeral.s-plan .plan-item:nth-child(2n),
  .plan-item:nth-child(2n) {
    margin-right: 0 !important;
  }

  .funeral.s-plan .plan-item .price-list,
  .plan-item .price-list {
    min-height: 120px;
  }

  .funeral.s-plan .mod-buttons > li {
    width: 100% !important;
  }
}

/* 空の要素でもスペースを確保 */
.funeral.s-plan .plan-item .desc:empty::after {
  content: " ";
  display: block;
  height: 60px; /* 通常の説明文の最小高さと合わせる */
}

.funeral.s-plan .plan-item:nth-child(2n) {
  margin-right: 0;
}

.funeral.s-plan .plan-item .title {
  font-size: 32px;
  color: #451a8c;
  font-weight: bold;
}

@media screen and (max-width: 767px) {
  .funeral.s-plan .plan-item .title {
    font-size: 25px;
  }
}

.funeral.s-plan .plan-item .price-list {
  display: flex;
  min-height: 120px; /* 価格エリアの最小高さを統一 */
  flex-grow: 1; /* 余白を埋める */
}

.funeral.s-plan .plan-item .price {
  width: 49%;
  margin-right: 2%;
  border: 1px solid #7c5eae;
  display: flex;
  flex-direction: column;
}

.funeral.s-plan .plan-item .desc {
  margin-bottom: 20px;
  font-size: 15px;
  flex-grow: 0; /* 固定の高さにする */
}

.funeral.s-plan .plan-item .price:last-child {
  margin-right: 0;
}

.funeral.s-plan .plan-item .price .title {
  font-size: 14px;
  color: #262628;
  font-weight: normal;
  text-align: center;
  background-color: #e5e5e5;
  padding: 2px 10px;
}

.funeral.s-plan .plan-item .price .text {
  font-size: 30px;
  color: #451a8c;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2px 10px;
  margin-bottom: 0;
  flex: 1;
}

@media screen and (max-width: 767px) {
  .funeral.s-plan .plan-item .price .text {
    font-size: 23px;
  }
  .funeral.s-plan .plan-item .price .title {
    font-size: 11px;
  }
}

@media screen and (max-width: 767px) {
  .funeral.s-plan .plan-item .price .text {
    font-size: 20px;
    padding: 5px;
  }
  .funeral.s-plan .plan-item .price .title {
    font-size: 10px;
    padding: 5px;
  }
}

.funeral.s-plan .plan-item .price .text span.yen {
  font-size: 19px;
}

@media screen and (max-width: 480px) {
  .funeral.s-plan .plan-item .price .text span.yen {
    font-size: 14px;
  }
}

.funeral.s-plan .plan-item .price .text span.caution {
  font-size: 12px;
  font-weight: normal;
  color: #5d615b;
}

@media screen and (max-width: 1440px) {
  .funeral.s-plan .plan-item .price-list {
    flex-direction: column;
  }

  .funeral.s-plan .plan-item .price {
    width: 100%;
  }

  .funeral.s-plan .plan-item .price:first-child {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 1279px) {
  .funeral.s-plan .plan-item .price-list {
    flex-direction: row;
  }

  .funeral.s-plan .plan-item .price:first-child {
    width: 49%;
    margin-right: 2%;
    margin-bottom: 0;
  }

  .funeral.s-plan .plan-item .price:last-child {
    width: 49%;
  }
}

@media screen and (max-width: 1050px) {
  .funeral.s-plan .plan-item .price-list {
    flex-direction: column;
  }

  .funeral.s-plan .plan-item .price {
    width: 100% !important;
  }

  .funeral.s-plan .plan-item .price:first-child {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 767px) {
  .funeral.s-plan .plan-item .price-list {
    flex-direction: row;
  }

  .funeral.s-plan .plan-item .price:first-child {
    width: 49%;
    margin-right: 2%;
    margin-bottom: 0;
  }

  .funeral.s-plan .plan-item .price:last-child {
    width: 49%;
  }
}

@media screen and (max-width: 480px) {
  /*
  .funeral.s-plan .plan-item .price-list {
    flex-direction: column;
  }

  .funeral.s-plan .plan-item .price {
    width: 100% !important;
  }

  .funeral.s-plan .plan-item .price:first-child {
    margin-right: 0;
    margin-bottom: 20px;
  }
    */
}

.funeral.s-plan .plan-item .link {
  text-align: right;
  padding: 20px 0;
  color: #451a8c;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 8px;
  margin-top: auto; /* リンクを下部に固定 */
}

.funeral.s-plan .no-image {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.funeral.s-plan .box-cmn-ceremony-lead {
  width: 100%;
}

.funeral.s-plan .box-cmn-ceremony-title.border-bottom {
  border-bottom: 3px solid #451a8c;
  padding: 10px 0;
}

.funeral.s-plan .box-cmn-ceremony .title.bg-purple {
  background-color: #ebe6f2;
  margin-top: 20px;
  margin-bottom: 40px;
  font-size: 24px;
  color: #451a8c;
  font-weight: bold;
  line-height: 1.2;
  padding: 15px 45px 15px 20px;
  border-top: 3px solid #451a8c;
  position: relative;
  letter-spacing: 0.1em;
}

.funeral.s-plan .box-cmn-ceremony .title.bg-purple::after {
  /* 元の▼アイコンを無効化（アコーディオン機能のJavaScriptで代替） */
  content: none;
}

.funeral.s-plan .box-cmn-ceremony .title.bg-purple span {
  font-size: 16px;
}

@media screen and (max-width: 767px) {
  .funeral.s-plan .box-cmn-ceremony .title.bg-purple {
    font-size: 20px;
  }
}

/* アコーディオンアイコンを右に配置 */
.funeral.s-plan .accordion-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: #451a8c;
  transition: transform 0.3s ease;
}

.funeral.s-plan .mod-buttons > li {
  width: 48%;
}

.funeral.s-plan .box-cmn-ceremony .text {
  margin-bottom: 30px;
  font-size: 15px;
}

.funeral.plan-single a:hover {
  text-decoration: none;
}

.funeral.plan-single .contents-main-column .ttl-headline {
  width: 100%;
  margin: 0 0 60px 0;
}

.funeral.plan-single .sec-cmn {
  padding: 0;
}

.funeral.plan-single .box-cmn-ceremony {
  padding: 0 30px;
}

.funeral.plan-single .box-cmn-ceremony .title.bg-purple {
  margin-bottom: 30px;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .box-cmn-ceremony {
    padding: 0 10px;
  }
}

.funeral.plan-single .box-cmn-ceremony.slider {
  margin-bottom: 80px;
  overflow: hidden !important; /* スライダーの親要素で強制的にオーバーフローを隠す */
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .box-cmn-ceremony.slider {
    margin-bottom: 20px;
  }
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item {
  border-radius: 0;
  padding: 0;
  border-color: #737373;
  width: 100%;
  margin: 0 10px;
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item.active {
  border-color: #7c5eae;
  display: flex;
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item .banner {
  position: static;
  text-align: center;
  font-size: 14px;
  background-color: #a4a4a4;
  color: #fff;
  min-height: 30px;
  padding-top: 2px;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .box-cmn-ceremony.slider .plan-item .banner {
    font-size: 11px;
    min-height: 20px;
  }
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item.active .banner {
  background-color: #7c5eae;
  font-weight: bold;
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item .plan-thumbnail {
  margin-bottom: 0;
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item .title {
  background-color: #a4a4a4;
  font-size: 16px;
  text-align: center;
  color: #fff;
  padding: 1px 8px;
  font-weight: normal;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .box-cmn-ceremony.slider .plan-item .title {
    font-size: 14px;
    padding: 6px;
  }
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item.active .title {
  background-color: #7c5eae;
  font-weight: bold;
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item .price {
  padding: 10px;
  width: 100%;
  border: none;
  color: #737373;
  flex-shrink: 0; /* flexアイテムとしての縮小を無効化 */
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item .price .title {
  font-size: 12px;
  border: 1px solid #737373;
  padding: 2px 6px;
  display: inline-block;
  background-color: #fff;
  color: #737373;
  width: auto !important; /* !importantでflexの影響を強制的に無効化 */
  flex: none; /* flexアイテムとしての拡張を無効化 */
  max-width: fit-content; /* 内容に応じたサイズに制限 */
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item.active .price .title {
  border-color: #7c5eae;
  color: #7c5eae;
  width: auto !important; /* activeの場合でも幅制御を維持 */
  flex: none; /* flexアイテムとしての拡張を無効化 */
  max-width: fit-content; /* 内容に応じたサイズに制限 */
}

.funeral.plan-single .box-cmn-ceremony.slider .plan-item .price .text {
  display: block;
  padding: 0;
  color: #a4a4a4;
  line-height: 1.3;
  margin: 2px 0;
}

.funeral.plan-single
  .box-cmn-ceremony.slider
  .plan-item
  .price
  .text
  span:first-child {
  font-size: 12px;
}

.funeral.plan-single
  .box-cmn-ceremony.slider
  .plan-item
  .price
  .text
  span:nth-child(2) {
  font-size: 25px;
}

.funeral.plan-single
  .box-cmn-ceremony.slider
  .plan-item
  .price
  .text
  span:last-child {
  font-size: 16px;
}

@media screen and (max-width: 480px) {
  .funeral.plan-single
    .box-cmn-ceremony.slider
    .plan-item
    .price
    .text
    span:first-child {
    font-size: 12px;
  }
  .funeral.plan-single
    .box-cmn-ceremony.slider
    .plan-item
    .price
    .text
    span:nth-child(2) {
    font-size: 15px;
  }
  .funeral.plan-single
    .box-cmn-ceremony.slider
    .plan-item
    .price
    .text
    span:last-child {
    font-size: 12px;
  }
}

.funeral.plan-single
  .box-cmn-ceremony.slider
  .plan-item.active
  .price
  .text
  span:first-child {
  color: #7c5eae;
}

.funeral.plan-single
  .box-cmn-ceremony.slider
  .plan-item.active
  .price
  .text
  span:nth-child(2) {
  color: #7c5eae;
}

.funeral.plan-single
  .box-cmn-ceremony.slider
  .plan-item.active
  .price
  .text
  span:last-child {
  color: #7c5eae;
}

.funeral.plan-single .box-cmn-ceremony-title.slider-title {
  font-size: 20px;
}

.funeral.plan-single .box-cmn-ceremony.bg-full {
  background-color: #efefef;
  padding-top: 60px;
  padding-bottom: 60px;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .box {
  display: flex;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .box-item:first-child {
  display: flex;
  justify-content: center;
  width: 45%;
  margin-right: 3%;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .box-item:last-child {
  margin-right: 0;
  width: 52%;
}

@media screen and (max-width: 900px) {
  .funeral.plan-single .box-cmn-ceremony.bg-full .box-item:first-child {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .funeral.plan-single .box-cmn-ceremony.bg-full .box-item:last-child {
    width: 100%;
  }
}

/* 画像ギャラリーのスタイル */
.funeral.plan-single .plan-gallery {
  width: 100%;
}

.funeral.plan-single .gallery-main {
  width: 100%;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.funeral.plan-single .gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.funeral.plan-single .gallery-thumbnails {
  display: flex;
  gap: 2%;
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: 100%;
}

.funeral.plan-single .gallery-thumb-item {
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: all 0.3s ease;
  flex: 1;
  max-width: calc(33.333% - 1.333%);
  aspect-ratio: 3/2;
}

.funeral.plan-single .gallery-thumb-item:hover {
  border-color: #451a8c;
  transform: translateY(-2px);
}

.funeral.plan-single .gallery-thumb-item.active {
  border: 4px solid #451a8c;
  box-shadow: 0 2px 8px rgba(124, 94, 174, 0.3);
}

.funeral.plan-single .gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.funeral.plan-single .gallery-thumb-item img:hover {
  opacity: 0.8;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .banner {
  background-color: #7c5eae;
  color: #fff;
  font-size: 15px;
  display: inline-block;
  padding: 6px 10px 3px;
  margin-bottom: 13px;
  width: 260px;
  position: relative;
  background: linear-gradient(
    90deg,
    #7c5eae 0%,
    #7c5eae 50%,
    transparent 50%,
    transparent 100%
  );
  z-index: 10;
  overflow: hidden;
  font-weight: bold;
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .banner::after {
  position: absolute;
  content: "";
  top: -150%;
  left: 29px;
  width: 218px;
  height: 300%;
  transform: rotate(25deg);
  background: #7c5eae;
  z-index: -1;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .title {
  font-size: 36px;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .box-cmn-ceremony.bg-full .title {
    font-size: 30px;
  }
}

.funeral.plan-single .box-cmn-ceremony.bg-full .text {
  font-size: 15px;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .price-list {
  display: flex;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .price {
  width: 49%;
  margin-right: 2%;
  border: 1px solid #7c5eae;
  background-color: #fff;
  text-align: center;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .price:last-child {
  margin-right: 0;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .price .title {
  font-size: 14px;
  text-align: center;
  background-color: #e5e5e5;
  padding: 2px 8px;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .price .text {
  font-size: 31px;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .box-cmn-ceremony.bg-full .price .text {
    font-size: 26px;
  }
}

@media screen and (max-width: 480px) {
  /*
  .funeral.plan-single .box-cmn-ceremony.bg-full .price-list {
    flex-direction: column;
  }

  .funeral.plan-single .box-cmn-ceremony.bg-full .price {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

*/
  .funeral.plan-single .box-cmn-ceremony.bg-full .price .title {
    font-size: 12px;
    padding: 5px;
  }

  .funeral.plan-single .box-cmn-ceremony.bg-full .price .text {
    font-size: 18px;
    padding: 10px;
  }

  .funeral.plan-single .box-cmn-ceremony.bg-full .price .text span {
    font-size: 14px;
  }
}

.funeral.plan-single .box-cmn-ceremony.bg-full .price .text .c-purple {
  color: #451a8c;
  line-height: 1.3;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .price .caution {
  font-size: 12px;
  font-weight: normal;
  color: #262628;
}

.funeral.plan-single .box-cmn-ceremony.bg-full .price .text span {
  font-size: 20px;
}

.funeral.plan-single .box-cmn-ceremony.about {
  padding-top: 60px;
  padding-bottom: 60px;
}

.funeral.plan-single .box-cmn-ceremony.about .title {
  font-size: 24px;
  font-weight: bold;
  border-bottom: 3px solid #451a8c;
  padding: 10px 0;
  margin-bottom: 30px;
}

.funeral.plan-single .box-cmn-ceremony.about .text01 {
  font-size: 18px;
  color: #451a8c;
  margin-bottom: 20px;
}

.funeral.plan-single .box-cmn-ceremony.about .text02 {
  margin-bottom: 50px;
}

.funeral.plan-single .box-cmn-ceremony.about .links {
  display: flex;
  padding: 0 30px;
  justify-content: center;
}

.funeral.plan-single .box-cmn-ceremony.about .link {
  width: 30%;
  margin: 0 1.666%;
  text-decoration: none;
  padding: 10px 5px;
  border: 1px solid #451a8c;
  color: #451a8c;
  font-weight: bold;
  text-align: center;
}

.funeral.plan-single .box-cmn-ceremony.about .link::after {
  content: ">";
  margin-left: 16px;
  color: inherit;
  font-weight: bold;
}

.funeral.plan-single .box-cmn-ceremony.about .link:last-child {
  margin-right: 0;
}

@media screen and (max-width: 980px) {
  .funeral.plan-single .box-cmn-ceremony.about .links {
    padding: 0;
  }

  /*
  .funeral.plan-single .box-cmn-ceremony.about .link {
    width: 32%;
    margin-right: 2%;
  }
    */
}

@media screen and (max-width: 768px) {
  .funeral.plan-single .box-cmn-ceremony.about .links {
    flex-direction: column;
    align-items: center;
  }

  .funeral.plan-single .box-cmn-ceremony.about .link {
    width: 80%;
    margin: 0 0 20px 0;
    max-width: 480px;
  }
}

.funeral.plan-single .plan-title {
  background-color: #ebe6f2;
  margin-bottom: 30px;
  font-size: 24px;
  color: #451a8c;
  font-weight: bold;
  line-height: 1.2;
  padding: 15px 20px;
  border-top: 3px solid #451a8c;
  position: relative;
}

.funeral.plan-single .plan-title::after {
  content: "▼";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #451a8c;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.funeral.plan-single .plan-contents-list {
  display: flex;
  flex-wrap: wrap;
}

.funeral.plan-single .plan-content-item {
  display: flex;
  flex-direction: column;
}

.funeral.plan-single .plan-content-item {
  width: 24%;
  margin-right: 1.333%;
}

.funeral.plan-single .plan-content-item:nth-child(4n) {
  margin-right: 0;
}

.funeral.plan-single .plan-content-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.funeral.plan-single .plan-content-item .text {
  background-color: #f8f7e5;
  margin-top: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  min-height: 80px;
  line-height: 1.3;
  text-align: center;
  color: #262628;
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .plan-content-item {
    width: 49%;
    margin-right: 2%;
  }

  .funeral.plan-single .plan-content-item:nth-child(4n) {
    margin-right: 2%;
  }

  .funeral.plan-single .plan-content-item:nth-child(2n) {
    margin-right: 0;
  }

  .funeral.plan-single .plan-content-item .text {
    font-size: 12px;
    min-height: 50px;
  }
}

/* 式場サムネイルのスタイル */
.funeral.plan-single .place-thumbnail {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: #ccc;
}

.funeral.plan-single .place-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.funeral.plan-single .place-thumbnail .no-image {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.funeral.plan-single #plan-contents {
  padding-bottom: 30px;
}

.funeral.plan-single #plan-contents .caution {
  margin-bottom: 60px;
}

.funeral.plan-single .cost-title {
  font-size: 18px;
  color: #262628;
  /*font-weight: bold;*/
  position: relative;
  text-align: left;
  margin: 30px 0 20px;
  padding: 0;
  display: flex;
  align-items: center;
}

.funeral.plan-single .cost-title img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

.funeral.plan-single .cost-title > span {
  display: flex;
  align-items: center;
}

.funeral.plan-single .cost-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-image: radial-gradient(circle, #262628 1px, transparent 1px);
  background-size: 8px 1px;
  background-repeat: repeat-x;
  margin-left: 15px;
}

/* 対応する式場 */
.funeral.plan-single #plan-place {
  padding-bottom: 30px;
}

.funeral.plan-single #plan-place a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.funeral.plan-single .plan-place-item {
  display: flex;
  margin-bottom: 50px;
}

.funeral.plan-single .plan-place-item .place-thumbnail {
  width: 42%;
  margin-right: 3%;
}

.funeral.plan-single .plan-place-item .info {
  width: 55%;
}

.funeral.plan-single .plan-place-item .info .title {
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 20px;
  color: #451a8c;
}

.funeral.plan-single .plan-place-item .info .text {
  font-size: 16px;
}

.funeral.plan-single .plan-place-item .link {
  text-align: right;
}

.funeral.plan-single .plan-place-item .link p {
  color: #451a8c;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 16px;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .plan-place-item {
    flex-direction: column;
  }

  .funeral.plan-single .plan-place-item .place-thumbnail {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .funeral.plan-single .plan-place-item .info {
    width: 100%;
  }
}

/* 祭壇サムネイルのスタイル */
.funeral.plan-single .saidan-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

.funeral.plan-single .saidan-item {
  width: 32%;
  margin-right: 2%;
  position: relative;
}

.funeral.plan-single .saidan-item .modal-btn {
  width: 38px;
  position: absolute;
  top: 5px;
  right: 5px;
}

.funeral.plan-single .saidan-item:hover {
  text-decoration: none;
  opacity: 0.8;
}

.funeral.plan-single .saidan-item:nth-child(3n) {
  margin-right: 0;
}

.funeral.plan-single .saidan-item .name {
  font-size: 20px;
  text-align: center;
}

.funeral.plan-single .saidan-item .price {
  text-align: center;
  line-height: 1;
}

.funeral.plan-single .saidan-item .price span:first-child {
  font-size: 14px;
}

.funeral.plan-single .saidan-item .price span:nth-child(2) {
  font-size: 25px;
  color: #451a8c;
  font-weight: bold;
}

.funeral.plan-single .saidan-item .price span:last-child {
  font-size: 18px;
}

.funeral.plan-single .saidan-thumbnail {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.funeral.plan-single .saidan-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.funeral.plan-single .saidan-thumbnail .no-image {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.funeral.plan-single .saidan-item .text {
  padding: 10px;
}

.funeral.plan-single .saidan-item .text .info {
  display: none;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .saidan-item {
    width: 48%;
    margin-right: 2%;
  }

  .funeral.plan-single .saidan-item:nth-child(3n) {
    margin-right: 2%;
  }

  .funeral.plan-single .saidan-item:nth-child(2n) {
    margin-right: 0;
  }

  .funeral.plan-single .saidan-item .name {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 5px;
  }

  .funeral.plan-single .saidan-item .price span:nth-child(2) {
    font-size: 18px;
  }
}

/* 祭壇モーダルのスタイル */
.saidan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.saidan-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.saidan-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 10px;
  max-width: 1100px; /* 少し幅を広げる */
  width: 90%;
  max-height: 90%;
  overflow: auto;
}

.saidan-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #999;
  cursor: pointer;
  z-index: 10;
}

.saidan-modal-close:hover {
  color: #333;
}

.saidan-modal-body {
  display: flex;
  padding: 30px;
  gap: 30px;
}

.saidan-modal-image {
  flex: 0 0 50%;
  overflow: visible; /* サムネイルが見えるように変更 */
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.saidan-modal-image img {
  width: 100%;
  height: auto; /* 高さを自動調整 */
  object-fit: cover;
  display: block;
  aspect-ratio: 3 / 2; /* アスペクト比を維持 */
}

.saidan-modal-image .no-image {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
}

.saidan-modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.saidan-modal-info h3 {
  font-size: 18px;
  line-height: 1.3;
}

.saidan-modal-info .text {
  margin-bottom: 0 !important;
}

.saidan-modal-info .price {
  font-size: 27px;
  color: #451a8c;
  font-weight: bold;
  margin-bottom: 20px;
  display: block !important; /* 強制的に表示 */
  visibility: visible !important; /* 可視性を強制 */
}

.saidan-modal-info .text {
  display: flex;
  align-items: baseline;
}

.saidan-modal-info .text span:first-child {
  font-size: 14px;
}

.saidan-modal-info .text span:last-child {
  font-size: 18px;
  color: #451a8c;
}

.saidan-modal-info .info {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 50px;
}

.saidan-modal-info .caution {
  font-size: 14px !important;
}

.saidan-modal-body .text {
  font-size: 14px;
}

@media screen and (max-width: 767px) {
  .saidan-modal-content {
    width: 95%;
    max-height: 95%;
  }

  .saidan-modal-body {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .saidan-modal-image {
    flex: none;
    width: 100%;
    max-width: 100%; /* 幅を制限 */
  }

  .saidan-modal-image img {
    aspect-ratio: 3/2;
  }

  .saidan-modal-info h3 {
    font-size: 16px;
  }

  .saidan-modal-info .price {
    font-size: 24px;
  }

  .saidan-modal-info .info {
    font-size: 14px;
  }
}

/* 葬儀費用簡単見積りフォーム */
.funeral.plan-single .mitsumori-form {
  border-radius: 10px;
  margin: 40px 0 50px 0;
  border: 4px solid #d5cee1;
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

.funeral.plan-single #mitsumori-form select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background: #fff
    url('data:image/svg+xml;utf8,<svg fill="gray" height="16" viewBox="0 0 20 20" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M5.516 7.548a.75.75 0 0 1 1.06 0L10 10.972l3.424-3.424a.75.75 0 1 1 1.06 1.06l-3.954 3.954a.75.75 0 0 1-1.06 0L5.516 8.608a.75.75 0 0 1 0-1.06z"/></svg>')
    no-repeat right 1em center/1em !important;
  border: 1px solid #262628 !important;
  padding: 8px 32px 8px 8px !important;
  border-radius: 4px !important;
  font-size: 1em !important;
  color: #333 !important;
  min-width: 120px !important;
  height: 38px !important;
  position: relative !important;
}

/* 疑似要素でアイコンを追加 */
#mitsumori-form select:after {
  content: none;
}

.funeral.plan-single .mitsumori-form h3 {
  color: #451a8c;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
  padding: 15px 20px;
  background-color: #d5cee1;
  display: flex;
  align-items: center;
}

.funeral.plan-single .mitsumori-form h3 img {
  margin-right: 10px;
}

.funeral.plan-single .mitsumori-form .result-area {
  padding: 40px;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .mitsumori-form .result-area {
    padding: 10px;
  }

  .funeral.plan-single .mitsumori-form .result-area-inner {
    padding: 20px 10px !important;
  }
}

.funeral.plan-single .mitsumori-form .result-area-inner {
  padding: 40px;
  border-radius: 10px;
  background-color: #ececec;
  margin-bottom: 30px;
}

.funeral.plan-single .form-content {
  background: white;
  border-radius: 8px;
  padding: 50px 70px;
  margin-bottom: 20px;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .form-content {
    padding: 25px 10px;
  }
}

.funeral.plan-single .form-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 0;
}

.funeral.plan-single .form-row label {
  flex: 0 0 160px;
  /*font-weight: bold;*/
  color: #262628;
  font-size: 18px;
  text-align: left;
  white-space: nowrap;
  margin-right: 15px;
  display: flex;
  align-items: center;
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

.funeral.plan-single .form-row select {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #262628;
  font-size: 16px;
  background-color: white;
  color: #333;
  transition: border-color 0.3s ease;
}

.funeral.plan-single .form-row select:focus {
  outline: none;
  border-color: #451a8c;
  box-shadow: 0 0 0 3px rgba(69, 26, 140, 0.1);
}

.funeral.plan-single .form-row select:required:invalid {
  border-color: #7f7f89;
}

.funeral.plan-single .calculate-button {
  background: linear-gradient(135deg, #451a8c 0%, #7c5eae 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto 0;
  min-width: 200px;
}

.funeral.plan-single .calculate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(69, 26, 140, 0.3);
}

.funeral.plan-single .funeral.plan-single .calculate-button:active {
  transform: translateY(0);
}

.funeral.plan-single .form-row {
  align-items: stretch;
  gap: 10px;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .form-row label {
    width: 100%;
    margin-bottom: 0 !important;
  }
  .funeral.plan-single .form-row {
    flex-direction: column;
  }
  .funeral.plan-single .form-row label {
    flex: 0;
  }
}

/* 結果表示エリア */
.funeral.plan-single .result-area {
  background: white;
  border-radius: 8px;
  padding: 25px;
  margin-top: 20px;
}

.funeral.plan-single .result-area h4 {
  color: #451a8c;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #451a8c;
  text-align: left;
}

.funeral.plan-single .result-area h4 img {
  margin-right: 10px;
}

.funeral.plan-single .result-breakdown {
  overflow: hidden;
}

.funeral.plan-single .price-header {
  display: flex;
  color: white;
}

.funeral.plan-single .price-header .header-item {
  flex: 1;
  padding: 15px 10px;
  text-align: center;
  font-weight: bold;
}

.funeral.plan-single .price-header .header-item span {
  color: #451a8c;
  font-weight: normal;
  border: 1px solid #451a8c;
  padding: 3px 6px;
}

.funeral.plan-single .price-header .header-item:nth-child(2) {
  background-color: #fff;
  min-width: 240px;
}

.funeral.plan-single .price-header .header-item:last-child {
  background-color: #fff;
  border-right: none;
  margin-left: 30px;
  min-width: 240px;
}

.funeral.plan-single .result-row {
  display: flex;
  border-bottom: 2px dotted #9b9ba6;
}

.funeral.plan-single .result-row:last-child {
  border-bottom: none;
}

.result-row.total {
  font-weight: bold;
}

.funeral.plan-single .result-row .row-label {
  flex: 1;
  padding: 12px 10px;
  color: #262628;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.funeral.plan-single .result-row .row-value {
  flex: 1;
  padding: 12px 10px;
  text-align: center;
  color: #262628;
  background-color: #fff;
  font-size: 24px;
  min-width: 240px;
}

.funeral.plan-single .result-row div:last-child {
  margin-left: 30px;
}

@media screen and (max-width: 480px) {
  .funeral.plan-single .price-header .header-item:nth-child(2) {
    min-width: 200px;
  }

  .funeral.plan-single .result-row .row-label {
    font-size: 13px;
    padding: 10px 5px;
  }

  .funeral.plan-single .result-row {
    font-size: 14px;
  }

  .funeral.plan-single .result-row .row-value {
    font-size: 18px;
    padding: 10px 5px;
    min-width: 200px;
  }

  .funeral.plan-single .price-header .header-item span {
    font-size: 14px;
  }
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .price-header .header-item:last-child {
    margin-left: 0;
    min-width: 200px;
  }

  .funeral.plan-single .result-row div:last-child {
    margin-left: 0;
  }
}

.funeral.plan-single .result-row #total-cost-general,
.funeral.plan-single .result-row #total-cost-gold {
  color: #451a8c;
}

.funeral.plan-single .result-row #total-cost-general span,
.funeral.plan-single .result-row #total-cost-gold span {
  font-size: 14px;
  color: #262628;
  font-weight: normal;
  margin-right: 20px;
}

/* 金額表示の後に「円」を追加 */
.funeral.plan-single
  .result-row
  .row-value:not(.row-label):not(:first-child)::after {
  content: "円";
  margin-left: 2px;
  font-size: 18px;
}

@media screen and (max-width: 480px) {
  .funeral.plan-single
    .result-row
    .row-value:not(.row-label):not(:first-child)::after {
    font-size: 12px;
  }
}

.funeral.plan-single .result-row .row-value:last-child {
  border-right: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.funeral.plan-single .result-row .row-value:last-child span {
  margin-right: 10px;
  background-color: transparent;
  color: #ff5a5a;
}

.funeral.plan-single .plan-list .slick-next::before {
  right: -3px;
}

.funeral.plan-single .plan-list .slick-prev::before {
  left: -3px;
}

/* スマホ向け価格表示切り替え */
@media screen and (max-width: 980px) {
  /* 初期状態：ゴールド会員価格を非表示 */
  .funeral.plan-single .price-header .header-item:last-child,
  .funeral.plan-single .result-row .row-value:last-child {
    display: none;
  }

  /* ゴールド表示モード時：一般価格を非表示、ゴールド価格を表示 */
  .funeral.plan-single.gold-mode .price-header .header-item:nth-child(2),
  .funeral.plan-single.gold-mode .result-row .row-value:nth-child(2) {
    display: none;
  }

  .funeral.plan-single.gold-mode .price-header .header-item:last-child,
  .funeral.plan-single.gold-mode .result-row .row-value:last-child {
    display: block;
  }

  .funeral.plan-single .plan-item:nth-child(2n) {
    margin-right: 10px !important;
  }

  /* 価格切り替えボタン */
  .price-toggle-button {
    margin: 15px auto;
    display: block;
    color: #451a8c;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.3s ease;
    font-weight: bold;
  }

  .price-toggle-button:hover {
    opacity: 0.8;
  }
}

.funeral.plan-single .funeral.plan-single .result-row.total .row-value {
  color: #451a8c;
  font-size: 18px;
  font-weight: bold;
}

.funeral.plan-single .gold-discount {
  background-color: #ffc107;
  color: #333;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 8px;
}

/* plan-item内部の要素配置調整 */
.funeral.s-plan .plan-item .link {
  margin-top: auto; /* リンクを下部に固定 */
}

/* 基本料金に含まれない費用セクション - 3列グリッドレイアウト */
.cost-sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin: 20px 0;
}

.cost-section {
  border: 2px solid #7b68ee;
  background-color: #ffffff;
  position: relative;
}

/* 生花祭壇 - 1列目 */
.cost-section:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
}

/* 実費費用 - 2列目 */
.cost-section:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* おもてなし費用 - 3列目上 */
.cost-section:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

/* その他費用 - 3列目下 */
.cost-section:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.cost-section h5 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #7b68ee;
}

.cost-content {
  font-size: 14px;
  line-height: 1.6;
}

.cost-content p {
  margin: 8px 0;
  color: #333;
}

/* 生花祭壇セクション専用のスタイリング */
.cost-section:nth-child(1) {
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.cost-section:nth-child(1) h5 {
  flex-shrink: 0;
}

.cost-section:nth-child(1) .cost-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.cost-section:nth-child(1) .cost-content p {
  margin: 8px 0;
  flex-shrink: 0 !important;
}

/* funeral系ページでの基本料金に含まれない費用セクション */
.funeral .cost-sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin: 20px 0;
}

.funeral .cost-section {
  border: 2px solid #7b68ee;
  background-color: #ffffff;
  position: relative;
}

/* 生花祭壇 - 1列目 */
.funeral .cost-section:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.funeral .cost-section:nth-child(1) h5 {
  flex-shrink: 0;
}

.funeral .cost-section:nth-child(1) .cost-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.funeral .cost-section:nth-child(1) .cost-content p {
  margin: 8px 0;
  flex-shrink: 0;
}

/* 実費費用 - 2列目 */
.funeral .cost-section:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* おもてなし費用 - 3列目上 */
.funeral .cost-section:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

/* その他費用 - 3列目下 */
.funeral .cost-section:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.funeral .cost-section h5 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  padding-bottom: 8px;
  border-bottom: 1px solid #7b68ee;
}

.funeral .cost-content {
  font-size: 14px;
  line-height: 1.6;
}

.funeral .cost-content p {
  margin: 8px 0;
  color: #333;
}

/* plan-single固有のスタイル */
.funeral.plan-single .cost-sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin: 20px 0;
}

.funeral.plan-single .cost-section {
  border: 2px solid #7b68ee;
  background-color: #ffffff;
  position: relative;
}

/* 生花祭壇 - 1列目 */
.funeral.plan-single .cost-section:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.funeral.plan-single .cost-section:nth-child(1) h5 {
  flex-shrink: 0;
}

.funeral.plan-single .cost-section:nth-child(1) .cost-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.funeral.plan-single .cost-section:nth-child(1) .cost-content p {
  margin: 8px 0;
  flex-shrink: 0;
}

/* 実費費用 - 2列目 */
.funeral.plan-single .cost-section:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* おもてなし費用 - 3列目上 */
.funeral.plan-single .cost-section:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

/* その他費用 - 3列目下 */
.funeral.plan-single .cost-section:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.funeral.plan-single .cost-section h5 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #7b68ee;
  padding: 10px;
  margin: 0;
  background-color: #ebe6f3;
  color: #451a8c;
  font-weight: bold;
}

.funeral.plan-single .cost-content {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px;
  font-size: 16px;
}

.funeral.plan-single .cost-content p {
  margin: 8px 0;
  color: #333;
}

/* 生花祭壇の詳細リンク用スタイル */
.funeral.plan-single .cost-section:nth-child(1) .cost-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* モバイルでの生花祭壇セクションのフレックス設定を強制適用 */
.funeral.plan-single .cost-section:nth-child(1) .cost-content,
.funeral .cost-section:nth-child(1) .cost-content,
.cost-section:nth-child(1) .cost-content,
.contents-main .cost-section:nth-child(1) .cost-content,
article.contents-main .cost-section:nth-child(1) .cost-content {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  flex: none !important;
}

/* 非常に小さな画面（480px以下）での追加対応 */
@media (max-width: 480px) {
  .cost-sections,
  .funeral .cost-sections,
  .funeral.plan-single .cost-sections,
  .contents-main .cost-sections,
  article.contents-main .cost-sections {
    gap: 15px !important;
    margin: 15px 0 !important;
  }

  .cost-section,
  .funeral .cost-section,
  .funeral.plan-single .cost-section,
  .contents-main .cost-section,
  article.contents-main .cost-section {
    margin-bottom: 15px !important;
  }

  .cost-section h5,
  .funeral .cost-section h5,
  .funeral.plan-single .cost-section h5 {
    font-size: 16px !important;
    padding: 8px !important;
  }
}

/* レスポンシブ対応 - 767px以下で縦1列（4つセクション時のみ） */
@media (max-width: 767px) {
  .cost-sections:not(.cost-sections-three-only),
  .funeral .cost-sections:not(.cost-sections-three-only),
  .funeral.plan-single .cost-sections:not(.cost-sections-three-only),
  .contents-main .cost-sections:not(.cost-sections-three-only),
  article.contents-main .cost-sections:not(.cost-sections-three-only) {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  .cost-section,
  .funeral .cost-section,
  .funeral.plan-single .cost-section,
  .contents-main .cost-section,
  article.contents-main .cost-section {
    grid-column: unset !important;
    grid-row: unset !important;
    min-width: auto !important;
    width: 100% !important;
  }

  .funeral.plan-single .cost-section:nth-child(1),
  .funeral .cost-section:nth-child(1),
  .cost-section:nth-child(1),
  .contents-main .cost-section:nth-child(1),
  article.contents-main .cost-section:nth-child(1) {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .funeral.plan-single .cost-section:nth-child(2),
  .funeral .cost-section:nth-child(2),
  .cost-section:nth-child(2),
  .contents-main .cost-section:nth-child(2),
  article.contents-main .cost-section:nth-child(2) {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .funeral.plan-single .cost-section:nth-child(3),
  .funeral .cost-section:nth-child(3),
  .cost-section:nth-child(3),
  .contents-main .cost-section:nth-child(3),
  article.contents-main .cost-sections:nth-child(3) {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  .funeral.plan-single .cost-section:nth-child(4),
  .funeral .cost-section:nth-child(4),
  .cost-section:nth-child(4),
  .contents-main .cost-section:nth-child(4),
  article.contents-main .cost-section:nth-child(4) {
    grid-column: unset !important;
    grid-row: unset !important;
  }

  /* モバイルでの生花祭壇セクションのフレックス設定 */
  .funeral.plan-single .cost-section:nth-child(1) .cost-content,
  .funeral .cost-section:nth-child(1) .cost-content,
  .cost-section:nth-child(1) .cost-content,
  .contents-main .cost-section:nth-child(1) .cost-content,
  article.contents-main .cost-section:nth-child(1) .cost-content {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    flex: none !important;
  }
}

/* cost_content01が空の場合の3つのセクション横並びレイアウト */
.cost-sections-three-only {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr !important;
  grid-template-rows: 1fr !important; /* 高さを統一 */
  gap: 20px;
  margin: 20px 0;
  align-items: stretch; /* グリッドアイテムの高さを揃える */
}

.cost-sections-three-only .cost-section {
  border: 2px solid #7b68ee;
  background-color: #ffffff;
  position: relative;
  display: flex; /* フレックスレイアウトを使用 */
  flex-direction: column; /* 縦方向に配置 */
  height: 100%; /* 親の高さに合わせる */
  grid-column: unset !important; /* 通常のグリッド設定を無効化 */
  grid-row: unset !important; /* 通常のグリッド設定を無効化 */
}

/* 3つセクション時の各セクションに対する明示的な設定 */
.cost-sections-three-only .cost-section:nth-child(1),
.cost-sections-three-only .cost-section:nth-child(2),
.cost-sections-three-only .cost-section:nth-child(3) {
  grid-column: unset !important;
  grid-row: unset !important;
  flex: 1; /* 各セクションが同じ幅を持つ */
  height: 100% !important; /* 親の高さに合わせる */
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
}

/* 3セクション時の更に具体的な設定（優先度を上げる） */
/* 3セクション時の更に具体的な設定（優先度を上げる） */
.funeral.plan-single .cost-sections-three-only .cost-section:nth-child(1),
.funeral.plan-single .cost-sections-three-only .cost-section:nth-child(2),
.funeral.plan-single .cost-sections-three-only .cost-section:nth-child(3),
.funeral .cost-sections-three-only .cost-section:nth-child(1),
.funeral .cost-sections-three-only .cost-section:nth-child(2),
.funeral .cost-sections-three-only .cost-section:nth-child(3) {
  grid-column: unset !important;
  grid-row: unset !important;
  flex: 1 !important;
  height: 100% !important; /* 親の高さに合わせる */
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}
/* 3つセクション時のヘッダーサイズを統一 */
.funeral.plan-single .cost-sections-three-only .cost-section:nth-child(1) h5,
/* 3つセクション時のヘッダーサイズを統一 */
.funeral.plan-single .cost-sections-three-only .cost-section:nth-child(1) h5,
.funeral.plan-single .cost-sections-three-only .cost-section:nth-child(2) h5,
.funeral.plan-single .cost-sections-three-only .cost-section:nth-child(3) h5 {
  flex-shrink: 0; /* ヘッダーサイズを固定 */
  padding: 10px;
  margin: 0;
  background-color: #ebe6f3;
  color: #451a8c;
  font-weight: bold;
  border-bottom: 1px solid #7b68ee;
  font-size: 18px;
  box-sizing: border-box;
}
/*
  3つセクション時のコンテンツエリアを統一
  */
.funeral.plan-single
  .cost-sections-three-only
  .cost-section:nth-child(1)
  .cost-content,
.funeral.plan-single
  .cost-sections-three-only
  .cost-section:nth-child(2)
  .cost-content,
.funeral.plan-single
  .cost-sections-three-only
  .cost-section:nth-child(3)
  .cost-content {
  flex: 1; /* 残りのスペースを埋める */
  display: flex;
  flex-direction: column;
  padding: 10px;
  font-size: 16px;
  line-height: 1.6;
  box-sizing: border-box;
}

/* 3つセクション時のレスポンシブ対応 */
@media (max-width: 767px) {
  .funeral.plan-single .cost-sections-three-only {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  .funeral.plan-single .cost-sections-three-only .cost-section {
    width: 100% !important;
    min-height: auto !important;
  }
}

/* cost-content01セクションの内容を左揃えに設定 */
.funeral.plan-single .cost-content01 {
  text-align: left;
}

.funeral.plan-single .cost-content01 .inner-link {
  text-align: right;
}

.funeral.plan-single .cost-content01 .inner-link a {
  color: #451a8c;
  text-decoration: underline;
}

/* 祭壇モーダルのサムネイル機能 */
.funeral.plan-single .saidan-thumbnails {
  display: flex !important;
  justify-content: space-between; /* デフォルトは3つのサムネイルを均等配置 */
  gap: 8px;
  margin-top: 15px;
  min-height: auto; /* 高さを自動調整 */
  max-width: 100%;
  overflow: hidden; /* スクロール不要に */
}

/* サムネイルが2枚の時は左寄せ */
.funeral.plan-single .saidan-thumbnails.two-items {
  justify-content: flex-start; /* 左寄せ */
}

.funeral.plan-single .thumbnail-item {
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color 0.3s ease;
  flex: 1; /* デフォルトは均等に幅を分ける */
  max-width: calc(33.333% - 6px); /* 3分割レイアウト（gap分を考慮） */
  background-color: #fff;
}

/* サムネイルが2枚の時の個別サイズ調整 */
.funeral.plan-single .saidan-thumbnails.two-items .thumbnail-item {
  flex: 0 0 auto; /* flexで伸縮しない */
  max-width: 150px; /* 固定幅を設定 */
  width: 150px;
}

.funeral.plan-single .thumbnail-item img {
  width: 100% !important;
  aspect-ratio: 3/2 !important; /* 3:2のアスペクト比に設定 */
  object-fit: cover;
  display: block !important;
  transition: opacity 0.3s ease;
}

.funeral.plan-single .thumbnail-item img:hover {
  opacity: 0.8;
}

.thumbnail-item img.active {
  border: 3px solid #451a8c !important;
}

.funeral.plan-single .thumbnail-item:hover {
  border-color: #451a8c; /* ホバー時に枠線の色を変更 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .funeral.plan-single .saidan-thumbnails {
    gap: 6px;
    margin-top: 10px;
  }

  .funeral.plan-single .funeral.plan-single .thumbnail-item {
    max-width: calc(33.333% - 4px); /* モバイルでもgap分を考慮 */
  }

  /* モバイルでサムネイルが2枚の時 */
  .funeral.plan-single .saidan-thumbnails.two-items .thumbnail-item {
    max-width: 120px; /* モバイルでは少し小さく */
    width: 120px;
  }

  .thumbnail-item img {
    aspect-ratio: 3/2 !important; /* モバイルでも3:2を維持 */
  }
}

/* 画像ギャラリーのレスポンシブ対応 */
@media (max-width: 900px) {
  .funeral.plan-single .box-cmn-ceremony.bg-full .box {
    flex-direction: column;
  }

  .funeral.plan-single .box-cmn-ceremony.bg-full .box-item {
    width: 100%;
  }

  .funeral.plan-single .box-cmn-ceremony.bg-full .box-item:first-child {
    width: 100%;
    margin-bottom: 30px;
  }

  .funeral.plan-single .plan-gallery {
    max-width: 100%;
  }

  .funeral.plan-single .gallery-thumbnails {
    gap: 1.5%;
  }

  .funeral.plan-single .gallery-thumb-item {
    max-width: calc(33.333% - 1%);
    aspect-ratio: 3/2;
  }
}

/* */
.funeral.plan-single .contents-main-column .bottom-links {
  padding-bottom: 50px;
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

.funeral.plan-single .contents-main-column .bottom-links .link {
  display: flex;
  padding: 10px 30px;
  max-width: 480px;
  color: #fff;
  border-radius: 8px;
  align-items: center;
  width: 49%;
  min-height: 85px;
}

.funeral.plan-single .contents-main-column .bottom-links .link-row {
  margin-bottom: 30px;
}

.funeral.plan-single .contents-main-column .bottom-links .link-row:last-child {
  display: flex;
  justify-content: center;
}

@media screen and (max-width: 980px) {
  .funeral.plan-single .contents-main-column .bottom-links .link-row {
    flex-direction: column;
    align-items: center;
  }

  .funeral.plan-single
    .contents-main-column
    .bottom-links
    .link-row:last-child
    .link:first-child {
    margin-right: 0 !important;
    margin-bottom: 30px;
  }

  .funeral.plan-single .contents-main-column .bottom-links .link {
    width: 100%;
  }
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:first-child
  .link {
  background: linear-gradient(to bottom, #ff7abc, #cf0061);
  justify-content: space-between;
  font-size: 24px;
  margin: 0 auto;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:first-child
  .link
  span:first-child,
.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link
  span:first-child {
  display: flex;
  align-items: center;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:first-child
  .link
  span:first-child
  span:first-child,
.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link
  span:first-child
  span:first-child {
  margin-right: 10px;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:first-child
  .link
  span:last-child,
.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link
  span:last-child {
  display: flex;
  align-items: center;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link:first-child {
  background: linear-gradient(to bottom, #ff9650, #c83213);
  justify-content: space-between;
  font-size: 24px;
  margin-right: 2%;
}

@media screen and (max-width: 480px) {
  .funeral.plan-single
    .contents-main-column
    .bottom-links
    .link-row:first-child
    .link:first-child,
  .funeral.plan-single
    .contents-main-column
    .bottom-links
    .link-row:last-child
    .link:first-child {
    font-size: 15px;
  }
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link:last-child {
  display: flex;
  background: linear-gradient(to bottom, #ff9650, #c83213);
  justify-content: center;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link:last-child
  span:first-child {
  margin-right: 10px;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link:last-child
  span:last-child {
  display: block;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link:last-child
  span:last-child
  span {
  display: block;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link:last-child
  span:last-child
  span:first-child {
  font-size: 14px;
}

.funeral.plan-single
  .contents-main-column
  .bottom-links
  .link-row:last-child
  .link:last-child
  span:last-child
  span:last-child {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
}

@media screen and (max-width: 360px) {
  .funeral.plan-single
    .contents-main-column
    .bottom-links
    .link-row:last-child
    .link:last-child
    span:last-child
    span:last-child {
    font-size: 20px;
  }

  .funeral.plan-single
    .contents-main-column
    .bottom-links
    .link-row:last-child
    .link:last-child
    span:last-child
    span:first-child {
    font-size: 12px;
  }

  .funeral.plan-single
    .contents-main-column
    .bottom-links
    .link-row:first-child
    .link:first-child,
  .funeral.plan-single
    .contents-main-column
    .bottom-links
    .link-row:last-child
    .link:first-child {
    font-size: 14px;
  }

  .funeral.plan-single .contents-main-column .bottom-links .link {
    padding: 10px 15px;
  }
}

.funeral.plan-single .fixed-links {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f8f7e5;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px;
  display: flex;
  justify-content: center;
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;  
}

.funeral.plan-single .fixed-links .link {
  padding: 10px 20px;
  border: 2px solid #451a8c;
  border-radius: 8px;
  max-width: 295px;
  background-color: #fff;
  margin-right: 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 30%;
  font-size: 16px;
  line-height: 1.2;
  color: #262628;
  font-weight: bold;
}

.funeral.plan-single .fixed-links .link:last-child {
  margin-right: 0;
  justify-content: center;
}

.funeral.plan-single .fixed-links .link:last-child span:first-child {
  margin-right: 20px;
}

.funeral.plan-single .fixed-links .link:last-child span:first-child img {
  margin-top: 18px;
}

.funeral.plan-single .fixed-links .link:last-child span:last-child {
  display: block;
}

.funeral.plan-single
  .fixed-links
  .link:last-child
  span:last-child
  span:first-child {
  font-size: 12px;
}

.funeral.plan-single
  .fixed-links
  .link:last-child
  span:last-child
  span:last-child {
  font-size: 26px;
  font-weight: bold;
  color: #451a8c;
  line-height: 1;
}

@media screen and (max-width: 980px) {
  .funeral.plan-single
    .fixed-links
    .link:last-child
    span:last-child
    span:first-child {
    font-size: 10px;
  }

  .funeral.plan-single
    .fixed-links
    .link:last-child
    span:last-child
    span:last-child {
    font-size: 19px;
  }
}

.funeral.plan-single .fixed-links-sp {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f8f7e5;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 10px;
  justify-content: center;
  display: none;
}

.funeral.plan-single .fixed-links-sp .link {
  background-color: #fff;
  padding: 6px;
  border: 2px solid #451a8c;
  font-size: 9px;
  border-radius: 5px;
  margin-right: 8px;
  min-width: 60px;
}

.funeral.plan-single .fixed-links-sp .link:last-child {
  margin-right: 0;
}

.funeral.plan-single .fixed-links-sp .link:last-child p:first-child span {
  margin-left: 3px;
}

.funeral.plan-single .fixed-links-sp .link:last-child p:nth-child(2) {
  font-size: 20px;
  color: #451a8c;
  line-height: 1.2;
}

.funeral.plan-single .fixed-links-sp .link img {
  height: 24px;
}

.funeral.plan-single .fixed-links-sp .link:last-child img {
  height: 15px;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .fixed-links {
    display: none;
  }
  .funeral.plan-single .fixed-links-sp {
    display: flex;
  }
}

.funeral.plan-single .wrapper .top a {
  bottom: 100px;
}

.funeral.plan-single .about-gold-link {
  text-align: right;
  margin-top: 30px;
  /*margin-bottom: 20px;*/
}

.funeral.plan-single .about-gold-link a {
  text-decoration: underline;
  color: #451a8c;
}

@media screen and (max-width: 767px) {
  .funeral.plan-single .about-gold-link a {
    font-size: 14px;
  }
}

.funeral.s-plan p.header-lead,
.funeral.plan-single p.header-lead {
  color: #fff;
}

@media screen and (max-width: 1919px) {
  .funeral.plan-single .contents-main-column {
    width: calc(100% - 270px) !important;
  }
  .funeral.plan-single main {
    width: calc(100% - 250px) !important;
  }
}

@media screen and (max-width: 1279px) {
  .funeral.plan-single .contents-main-column {
    width: 100% !important;
  }

  .funeral.plan-single main {
    width: 100% !important;
  }
}

/* slick標準クラスの横並び指定 */
.slick-track {
  display: flex !important;
}
.slick-slide {
  float: none !important;
  display: block !important;
  height: auto !important;
}

@media screen and (max-width: 767px) {
  .slick-slide {
    width: 50% !important;
  }
  .funeral.plan-single .box-cmn-ceremony.slider .plan-item {
    width: 100% !important;
  }
  .slick-track {
    justify-content: center !important;
  }
}

.funeral.plan-single a:focus {
  text-decoration: none;
}

#price-toggle-btn::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 5px;
  vertical-align: middle;
  background: url("/wpsystem/wp-content/themes/singleton_20250722/plan-assets/images/yajirushi.svg")
    no-repeat center/contain;
}

/*.single.s-plan p,
.single.s-plan ol,
.single.s-plan ul {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}

.single.s-plan h2,
.single.s-plan h3,
.single.s-plan strong,
.single.s-plan a {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}

.single.s-plan h4,
.single.s-plan h5,
.single.s-plan th,
.single.s-plan blockquote {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}

.single.s-plan .mod-buttons>li a {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;  
}*/

.single.s-plan .sec-cmn-f p,
.single.s-plan .sec-cmn-f ol,
.single.s-plan .sec-cmn-f ul {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}

.single.s-plan .sec-cmn-f h2,
.single.s-plan .sec-cmn-f h3,
.single.s-plan .sec-cmn-f strong,
.single.s-plan .sec-cmn-f a {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}

.single.s-plan .sec-cmn-f h4,
.single.s-plan .sec-cmn-f h5,
.single.s-plan .sec-cmn-f th,
.single.s-plan .sec-cmn-f blockquote {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}

.single.s-plan .sec-cmn-f .mod-buttons>li a {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;  
}

/* 20250731追加 */
.notice {
 font-size: 14px;
}

.funeral.plan-single .fixed-links .link:last-child span:last-child span:last-child {
  font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}

@media screen and (max-width: 767px) {
.funeral.plan-single .box-cmn-ceremony.bg-full,
.funeral.plan-single .box-cmn-ceremony.about {
  padding-top: 40px;
  padding-bottom: 40px;
}

.funeral.plan-single .plan-place-item:last-of-type {
  margin-bottom: 10px;
}

.funeral.plan-single .saidan-item .text {
  margin-bottom: 10px;
}

.funeral.plan-single .mitsumori-form h3 {
    font-size: 18px;
    padding: 11px 20px;
    margin-bottom: 5px;
}

.funeral.plan-single .contents-main-column .bottom-links .link-row:first-child .link:first-child,
.funeral.plan-single .contents-main-column .bottom-links .link-row:last-child .link:first-child {
    font-size: 16px !important;
}
.funeral.plan-single .contents-main-column .bottom-links .link-row:first-child .link:first-child img,
.funeral.plan-single .contents-main-column .bottom-links .link-row:last-child .link:first-child img,
.funeral.plan-single .contents-main-column .bottom-links .link-row:last-child .link:last-child img {
    width: 80%;
}
.funeral.plan-single .contents-main-column .bottom-links .link-row:last-child .link:last-child span:last-child span:last-child {
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
}
.funeral.plan-single .fixed-links-sp .link div {
    margin-bottom: 3px;
}
.funeral.plan-single .fixed-links-sp .link p {
    font-size: 9px;
    font-weight: 600;
    color: #262628;
    font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}
.funeral.plan-single .fixed-links-sp .link:last-child p:nth-child(2) {
    font-size: 22px;
    margin-top: 3px;
    font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}
.funeral.plan-single .fixed-links-sp .link:last-child p:first-child span {
    font-size: 9px;
    font-weight: 600;
    color: #262628;
    font-family: "Hiragino UD Sans F W3 JIS2004", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif !important;
}
.funeral.plan-single .saidan-item .price span:first-child {
    font-size: 12px;
}
.funeral.plan-single .saidan-item .price span:last-child {
    font-size: 13px;
}

.funeral.s-plan .plan-item .link,
.funeral.plan-single .about-gold-link a,
.funeral.plan-single .cost-content01 .inner-link a,
.funeral.plan-single .plan-place-item .link p,
.funeral.plan-single .about-gold-link a {
  font-weight: bold;
}

}

@media screen and (max-width: 480px) {
  .funeral.plan-single .box-cmn-ceremony.bg-full .price .text .c-purple {
    font-size: 23px;
  }
  .funeral.plan-single .box-cmn-ceremony.bg-full .price .text span {
    font-size: 14px;
  }
  .funeral.plan-single .box-cmn-ceremony.slider .plan-item .price .text span:first-child {
    font-size: 9px;
  }
  .funeral.s-plan .plan-item .price-list {
    min-height: 95px;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1590px) {
  .funeral.plan-single .box-cmn-ceremony.bg-full .price .text .c-purple {
    font-size: 23px;
  }
  .funeral.plan-single .box-cmn-ceremony.bg-full .price .text span {
    font-size: 16px;
  }
  .funeral.plan-single .box-cmn-ceremony.bg-full .price .title {
    font-size: 12px;
  }
}


@media screen and (min-width: 1440px) and (max-width: 1590px) {
  .funeral.s-plan .plan-item .price .title {
    font-size: 11px;
  }
  .funeral.s-plan .plan-item .price .text {
    font-size: 24px;
  }
}

@media screen and (min-width: 1280px) and (max-width: 1375px) {
  .funeral.plan-single .box-cmn-ceremony.slider .plan-item .price .text span:first-child {
    font-size: 10px;
  }
  .funeral.plan-single .box-cmn-ceremony.slider .plan-item .price .text span:nth-child(2){
    font-size: 22px;
  }
}