
.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{
	padding: 0 0 0.5em;
	border: solid 2px var(--base-color);
	border-radius: 10px;
	margin-bottom: 40px;
}


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


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

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


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

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

.option {
  flex: 1 1 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;
}

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

.option img {
  width: 100%;
  height: auto;
  border-radius: 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;
    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;
}

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

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

.form-group-wrapper{
	display: flex;
	gap:40px;
	justify-content: center;
	margin: 0 auto;
	border: 3px solid #ccc;
    border-radius: 12px;
    padding: 20px 15px;
    position: relative;
    background: #f9f9f9;
	
}

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

.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;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

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

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

  .option {
    flex: 1 1 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 {
  margin-bottom: 20px;
}

.selected-info img {
  width: 130px;
  height: auto;
  border-radius: 8px;
	margin: 0 auto
}

.selected-info .text {
  font-weight: bold;
}




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


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


/* メッセージボックス */
.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;
}

/* 印刷時のスタイル */
@media print {
  .navigation, .select-options, section:not(.active) {
    display: none !important;
  }
  
  .estimate-result {
    page-break-inside: avoid;
  }
}

/* 見積りテーブル */
.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{
	gap:20px;
	flex-wrap: wrap;
}

.option-service {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  position: relative;
	width: 46%;
}
.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;
    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-service.selected .checkmark {
  display: inline;
}



/* 見積もりテーブル全体のスタイル */
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 {
  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;
}

/* ボタンの基本スタイル */
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 {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

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

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

/* さらに小さい画面でのテーブルのスタイル */
@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;
  }
}

