
.mitsumori-wrapper{
	display: flex;
	justify-content: space-between;
}

.mitsumori-wrapper nav{
	width: 23%;
}


.mitsumori-contents {
	width: 72%;
	
}


/* 共通レイアウト */
#funeral-estimate {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

#funeral-estimate h2 {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #333;
}

.step {
  display: none;
  animation: fadeIn 0.5s ease-in-out; 
}

.step.active {
  display: block;
}

.message-text{
	width: 70%;
	margin: 0 auto;
}


.funeral-detail-all{
	border: solid 2px var(--base-color);
	border-radius: 10px;
	margin-bottom: 40px;
}


.funeral-detail-title{
	padding: 0.5em 1em;
	text-align: center;
	background: var(--base-color);
	border-radius: 8px 8px 0 0;
}


.funeral-detail-wrapper{
	padding: 10px 20px;
}

.funeral-detail-title h2{
	color: white;
	text-align: center;
	font-size: 18px;
}


.funeral-selected-wrapper{
	display: flex;
	gap:20px;
	margin-top: 10px;
}



@media (max-width: 1080px) {
  .funeral-selected-wrapper {
    width: auto;
       overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
	  position: relative;
  }
	
	

 
  /* 親要素の余白などでスクロールバーが出ないように */
  .funeral-detail-all {
    position: relative;
  }
	
	
	
		  .funeral-detail-all::before {
		  font-family: "Font Awesome 5 Free"; 
  content: "\f053"; 
  font-weight: 900;
  position: absolute;
  left: 3px;
  bottom: 25%;
  font-size: 16px;
		  
  }

	
	.funeral-detail-all::after {
		  font-family: "Font Awesome 5 Free"; 
  content: "\f054"; 
  font-weight: 900;
  position: absolute;
  right: 3px;
  bottom: 25%;
  font-size: 16px;
  }
}


.total-price-wrapper{
	display: flex;
	gap:10px;
	font-weight: bold;
	justify-content: center;
	align-items: center;
}

.total-price-wrapper-sp{
	display: flex;
	gap:10px;
	justify-content: center;
	align-items: center;
}

.total-price{
	font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1em;
	font-size: 300%;
	color: red;
}


@media (max-width: 600px) {
	.total-price-wrapper{
	flex-direction: column;
	gap:0px;
}

}

@media (max-width: 350px) {
	.total-price{
	font-size: 200%;
}


}



/* オプション選択エリア */
.select-options {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.option {
  width:calc(50% - 20px);
  border: 3px solid #ccc;
  border-radius: 12px;
  padding: 20px 15px;
  cursor: pointer;
  position: relative;
  transition: 0.3s ease;
  background: #f9f9f9;
  text-align: center;
	box-sizing: border-box;
  margin-bottom: 20px; 
}

.select-options .option:nth-child(2n) {
  margin-right: 0;  /* 2番目のアイテムにマージンをなくす */
}

.option:hover {
  border-color: var(--base-color);
}

.option img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.option p{
  text-align: left;
    line-height: 1.5em;
}

.funeral-option-name{
	font-size: 1.5em;
	font-weight: bold;
	text-align: center;
	margin-top: 10px;
}

.option .label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

.option .checkmark {
position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: white!important;
    display: none;
    background: var(--base-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
}

.option.selected {
  border-color: var(--base-color);
  background-color: var(--lemon-bg);
}

.option.selected .checkmark {
  display: block;
	color: white!important;
}

.option.disabled {
  opacity: 0.4;
  pointer-events: none;
}


@media (max-width: 1199px) {
	
	.checkmark {
    background: var(--orange)!important;
}
	
}

/* フォームグループ */

.form-group-wrapper{
	margin: 0 auto;
	border: 3px solid #ccc;
    border-radius: 12px;
    padding: 20px 15px;
    position: relative;
    background: #f9f9f9;
	
}

.form-group {
  margin-bottom: 20px;
	width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
	font-size: 1.2em;
}

.form-group select {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ナビゲーションボタン */
.navigation {
  text-align: center;
  margin-top: 30px;
}

.navigation button {
  background-color:var(--base-color);
  color: #fff;
  border: none;
  padding: 12px 24px;
  margin: 0 10px 1em;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

.return-btn {
  background-color:var(--base-color);
  color: #fff;
  border: none;
  padding: 16px 24px;
  margin: 0 10px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
	font-weight: bold;
}

.next-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}


.navigation button:hover,.return-btn:hover {
  background-color: var(--violet);
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .select-options {
    flex-direction: column;
  }

  .option {
    flex: 1 1 100%;
	  width: 100%;
  }
}

/* フェードインアニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}



.estimate-result {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
  font-size: 1em;
}

.estimate-result p {
  margin: 10px 0;
}

.next-actions {
  text-align: center;
  margin-top: 20px;
}


.selected-info-wrapper {
	width: 15%;
 text-align: center;
}

@media (max-width: 1080px) {
	.selected-info-wrapper {
	width: auto;
 text-align: center;
}
	
	.selected-info-wrapper h3{
		width: 170px;
}
}

.selected-info-wrapper .selected-info {
	line-height: 1.2em;
	font-size: 16px;
}

.selected-info-wrapper h3{
	font-size: 0.8em;
    line-height: 1.2em;
    margin-bottom: 0.5em;
}



.selected-info-wrapper .selected-info li{
	margin-bottom: 0.25em;
}

.selected-info-wrapper .selected-info li::before{
	content:'\f138';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right:5px;
	font-size: 0.9em;
}


.selected-info-wrapper .selected-info li p{
	 font-size: 0.9em;

}


.selected-info-wrapper .selected-info:nth-of-type(1) img{
  width: 130px;
  height: auto;
  border-radius: 8px;
	margin: 0 auto 10px;
}

.selected-info-wrapper .selected-info:nth-of-type(2) {
  font-weight: bold;
}

@media (max-width: 640px) {
.selected-info-wrapper .selected-info:nth-of-type(1) img {
    width: 100%;
    border-radius: 8px;
    margin: 0 auto 10px;
    object-fit: cover;
    height: 100px;
}
}

.selected-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.selected-box img {
  width: 100px;
  height: auto;
  border-radius: 8px;
}

/* STEP3プランボックス */

.funeral-plan-name-wrapper{
	display: flex;
	gap:10px;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	color: var(--base-color);
	font-size: 150%;
}


.funeral-plan-name{
		font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 0.8em;
	font-size: 300%;
}

.funeral-plan-price-wrapper{
	    display: flex;
    justify-content: center;
    align-items: flex-end;
	margin-bottom: 10px;
}

.funeral-plan-price-wrapper .label{
    font-family: "Bebas Neue", sans-serif;
    font-style: normal;
    line-height: 1em;
    font-size: 2em;
    letter-spacing: 0.05em;
    
}

/* メッセージボックス */
.message-box {
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
  border: 1px solid #ddd;
}

/* 宗教ボタンのスタイル調整 */
.religion-buttons {
  justify-content: center;
}

.religion-buttons .option {
  flex: 0 1 18%;
  min-width: 120px;
  padding: 15px 5px;
  margin: 10px;
}



/* 見積りテーブル */
.estimate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.estimate-table th, .estimate-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.estimate-table th {
  background-color: #f2f2f2;
}

.estimate-table tfoot {
  font-weight: bold;
}


.option-service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.option-service-container{
	display: flex;
	gap:20px;
	flex-wrap: wrap;
}

.option-service {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  position: relative;
	width: 48%;
}
.option-service.selected {
  border-color: var(--base-color);
  background-color: var(--lemon-bg);;
}
.option-icon {
  width: 100%;
	height: auto;
  object-fit: cover;
}
.option-details {
  flex: 1;
}
.option-details .label {
  font-weight: bold;
  font-size: 18px;
}
.option-details .description {
  font-size: 14px;
	line-height: 1.2em;
}
.checkmark {
  position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: white!important;
    display: none;
    background: var(--base-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 6px 6px 10px 0px rgba(0, 0, 0, 0.4);
	text-align: center;
}
.option-service.selected .checkmark {
  display: block;
	color: white!important;
}

@media (max-width: 640px) {
	
	.checkmark {
  position: absolute;
    top: -10px;
    right: -5px;
    font-size: 1.2em;
    width: 35px;
    height: 35px;
}
	
	
	.option-service {
    width: 100%;
    display: flex
;
}
	
	.option-icon {
    width: 40%;
    height: auto;
    object-fit: cover;
    margin-right: 2%;
}
}

.henreihin-service-container{
	gap:20px;
	flex-direction: column;
}


/* 見積もりテーブル全体のスタイル */
table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

th, td {
  padding: 15px;
  text-align: left;
  font-size: 16px;
}

/* ヘッダーのスタイル */
thead {
  background: var(--base-color);
  color: white;
}

thead th {
width: 33.3%;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 行間隔と奇数・偶数行の背景色 */
tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

tbody tr:hover {
  background-color: #eaeaea;
}

/* 内容が長い場合にテーブルセル内でテキストを折り返す */
td {
  word-wrap: break-word;
  white-space: normal;
}

/* セルの枠線 */
th, td {
  border-bottom: 1px solid #e0e0e0;
}

/* 最後の行の枠線を消す */
tbody tr:last-child td {
  border-bottom: none;
}

/* 合計価格の表示 */
#totalPriceDisplay {
  font-size: 20px;
  font-weight: bold;
  color: var(--base-color);
  text-align: right;
  margin-top: 20px;
}



@media (max-width: 768px) {
  /* スマホ表示時にテーブルのレイアウトを縦に並べる */


  table thead {
    display: none;
  }

  table tr {
    display: block;
    margin-bottom: 10px;
    padding: 5px;
    border: none;
  }

  table td {
    display: block;
    border: 1px solid #ccc;
    padding: 8px;
    background-color: #f9f9f9;
  }

  table td::before {
    content: attr(data-label);
    font-weight: bold;
    text-align: left;
  }
	
	#estimateTableBody tr td:first-child {
		color: white;
  font-weight: bold;
		background-color: var(--base-color);
}
	
		
	#estimateTableBody tr td:nth-child(2)::before {
		content: attr(data-label) "内容：";
		
	}
	
	#estimateTableBody tr td:last-child::before {
		content: attr(data-label) "価格：";
}
	
	
		#religionEstimateBody tr td:first-child {
		color: white;
  font-weight: bold;
		background-color: var(--base-color);
			text-align: left!important;
}
	
		
	#religionEstimateBody tr td:nth-child(2)::before {
		content: attr(data-label) "内容：";
		
	}
	
	#religionEstimateBody tr td:last-child::before {
		content: attr(data-label) "価格：";
}
	
}


/* ボタンの基本スタイル */
button {
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  color: var(--base-color);
  font-weight: bold;
	margin-bottom: 10px;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* LINEで共有するボタン */
button#shareLine {
  background-color: #4CAF50; /* LINEの緑 */
}

button#shareLine:hover {
  background-color: #45a049;
}

/* 問い合わせフォームに転送するボタン */
button#sendEstimate {
  background-color: #1e3c72; /* 落ち着いた青 */
}

button#sendEstimate:hover {
  background-color: #2a5298;
}

/* ボタンの間にマージンを追加 */
button + button {
  margin-left: 15px;
}

/* モバイル画面でテーブルが横スクロール可能になるように設定 */
@media (max-width: 768px) {
  table {
    width: 100%;
  }

  th, td {
    font-size: 14px;
    padding: 10px;
  }

  #totalPriceDisplay {
    font-size: 18px;
  }
	
	button + button {
  margin-left:0;
}
}

/* さらに小さい画面でのテーブルのスタイル */
@media (max-width: 480px) {
  table {
    font-size: 12px;
  }

  th, td {
    padding: 8px;
  }

  #totalPriceDisplay {
    font-size: 16px;
  }
}


/* 共通スタイル */
.step-navigation {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-navigation li {
  padding: 10px;
  border-left: 5px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.step-navigation li.active {
  background-color: #f0f0f0;
  border-left: 5px solid #007BFF;
  font-weight: bold;
}

/* スマホ（横並び） */
@media screen and (max-width: 768px) {
  .step-navigation {
    flex-direction: row;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
  }

  .step-navigation li {
    flex: 1 0 auto;
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    text-align: center;
    padding: 10px 5px;
  }

  .step-navigation li.active {
    border-bottom: 3px solid #007BFF;
    background-color: #f9f9f9;
  }
}






/* 見積もりのフロー*/
.mitsumori-wrapper {
  display: flex;
  justify-content: space-between;
}

.mitsumori-wrapper .mitsumori-navi-flow {
  width: 23%;
}

.mitsumori-contents {
  width: 72%;
}

.mitsumori-navi-flow .step-item {
	font-size: 0.9em;
  padding: 10px;
  margin: 5px 0px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: background-color 0.3s;
	line-height: 1.5em;
}

.mitsumori-navi-flow .step-item.active {
  color: var(--base-color);
  font-weight: bold;
  border-radius: 5px;
  border: 2px solid var(--base-color);
}

.mitsumori-navi-flow .step-item.active::before {
  content:'\f152';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-right:5px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 980px) {
  .mitsumori-wrapper {
    flex-direction: column;
  }

  .mitsumori-wrapper .mitsumori-navi-flow {
	  display: none!important;
  }

  .mitsumori-navi-flow .step-item {
    flex: 1 0 auto;
    margin: 5px;
    padding: 8px;
    font-size: 14px;
  }

  .mitsumori-contents {
    width: 100%;
  }
}

/* ボタンの横並び */
.send-btn-wrapper {
  margin-top: 2em;
  text-align: center;
  background-color: var(--lemon-bg);
	 padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
	
}

.send-btn {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap; /* スマートフォンで折り返し */
}

.cf7__button {
  background-color: #6b4e31; /* 茶色 */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
}

.cf7__button.email {
  background-color: var(--base-color); /* メール問い合わせ用 */
}

.line__button {
  background-color: #06C755; /* 緑色 */
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
	margin: 5px;
}

.cf7__button:hover, .line__button:hover {
  opacity: 0.9;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
	text-align: center;
}

.modal-btn {
  background-color: red;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.modal-btn.cancel {
  background-color: #ccc;
}

.modal-content p{
	line-height: 1.5em;
}

.modal-content img{
	display: block;
	margin: 0 auto;
  }


@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .send-btn {
    flex-direction: column;
    align-items: center;
  }

  .cf7__button, .line__button {
    width: 100%;
    max-width: 300px;
  }
}

/* 見積もりテーブル */
#estimateDisplay table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}
#estimateDisplay th, #estimateDisplay td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}
#estimateDisplay th {
  background-color: #f4f4f4;
  font-weight: bold;
}
#estimateDisplay p {
  font-weight: bold;
  margin-top: 0.5em;
}



.cf7__list {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}

.cf7__list dt, .cf7__list dd {
  padding: 10px;
}

.cf7__required::before {
  content: "*";
  color: red;
}

.cf7__optional::before {
  content: "(任意)";
  color: gray;
}

.estimate-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.estimate-table th, .estimate-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.estimate-table th {
  background-color: #f2f2f2;
}

.cf7__button_wrapper {
  text-align: center;
  margin-top: 20px;
}

.cf7__button {
  background-color: #FF0004;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 5px;
}

.cf7__button[type="reset"] {
  background-color: #ccc;
}

@media (max-width: 600px) {
  .cf7__list {
    grid-template-columns: 1fr;
  }
}
