body {
  background-color: #E3F3F9;
  /* 全体の背景色を変更 */
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

#result-description {
  font-size: 24px;
  /* フォントサイズを24pxに変更 */
  margin-bottom: 20px;
  color: #0096d6;
  text-align: center;
}

#result-description span.bold {
  font-weight: bold;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

table thead th {
  text-align: center;
  padding: 10px;
  color: #ffffff;
  /* カラムヘッダの文字色を変更 */
}

table thead th:nth-child(1) {
  background-color: #3b9ada;
  /* カラムヘッダの色を変更 */
}

table thead th:nth-child(2) {
  background-color: #73b6e4;
  /* カラムヘッダの色を変更 */
}

table thead th:nth-child(3) {
  background-color: #abd3ef;
  /* カラムヘッダの色を変更 */
}

table tbody td {
  background-color: #f3f8fe;
  /* 表組のデータ部分の背景色を変更 */
}
table td:before {
    width: 0;
	border-left: 0;
}
table th,
table td {
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

table th:last-child,
table td:last-child {
  border-right: none;
}

table tr:last-child td {
  border-bottom: none;
}

table td {
  padding: 10px;
}

table td:first-child {
  font-weight: bold;
  width: calc(16 * 1em);
  font-size:clamp(1.2rem, 2vw, 1.2rem);
}

table td:nth-child(2) {
  font-weight: bold;
  color: red;
  width: calc(6 * 1em);
  font-size: clamp(2.0rem, 2vw, 2.0rem);
}

table td:nth-child(3) {
  width: auto;
  font-size: clamp(0.8rem, 2vw, 1.0rem);
}

#notice {
  width: 100%;
  background-color: #f3f8fe;
  /* 注意事項欄の背景色を変更 */
  padding: 10px;
  border-radius: 5px;
  margin: 20px 0;
  box-sizing: border-box;
  max-height: 105px;
  /* 初期表示は3.5行分の高さに */
  overflow-y: scroll;
  /* 上下スクロールを有効に */
}

#notice p {
  text-indent: -1em;
  padding-left: 1em;
  margin: 0;
  font-size: 12px;
  /* フォントサイズを変更 */
}

.custom-html {
  background-color: #ffffff;
  /* custom-htmlの背景色を変更 */
  padding: 16px 8px;
  width: 100%;
  /* 幅を100%に変更 */
  box-sizing: border-box;
  border-radius: 5px;
  margin: 20px auto;
  text-align: center;
  /* 中央寄せ */
}

.custom-html .custom-text {
  color: #f2a405;
  /* テキストカラーを変更 */
  font-weight: bold;
  /* テキストをボールド */
  margin-bottom: 20px;
  /* 下部のマージンを追加 */
}

.custom-html .custom-image {
  width: 100%;
  /* 画像幅を80%に変更 */
  background-color: #f2a405;
  /* ダミー画像の背景色 */
}

button {
  padding: 10px 20px;
  margin: 20px auto;
  display: flex;
  /* フレックスボックスを使用して横並びにする */
  align-items: center;
  /* 縦揃えを中央にする */
  justify-content: center;
  /* 横揃えを中央にする */
  background-color: #009F41;
  /* ボタンの背景色 */
  color: white;
  border: 2px solid #FFFFFF;
  /* フチ2pxの色 */
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  min-width: 300px;
  /* 幅を300pxに固定 */
}

button img {
  width: 35px;
  vertical-align: middle;
}

button.first-button {
  margin-bottom: 10px;
  /* ボタン間のスペース */
  font-size: 18px;
  /* フォントサイズを変更 */
  height: 50px;
  /* ボタンの高さを変更 */
}

button span.phone-number {
  margin: 0 10px;
}

button:hover {
  background-color: #007d33;
  /* ボタンホバー時の色 */
}

/* 金額部分のフォントサイズを大きくする */
td.cost {
  font-size: 1.2em;
  /* フォントサイズを1.2倍に変更 */
}

/* スマホ用レイアウト */
@media screen and (max-width: 429px) {

  table thead,
  table tbody,
  table th,
  table td,
  table tr {
    display: block;
    width: 100%;
  }

  table thead {
    display: none;
  }

  table tr {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    background-color: #f3f8fe;
    /* レコード全体の背景色を設定 */
    border: none;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
  }

  table td {
    border: none;
    text-align: left;
    padding: 3px 0;
    position: relative;
  }

  table td:nth-child(1),
  table td:nth-child(2) {
    margin: 0 auto;
    text-align: center;
  }

  table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-left: 15px;
    font-weight: bold;
    text-align: left;
  }

  /* 追加: スマホ用レイアウトで画像の幅を100%に */
  .custom-html .custom-image {
    width: 100%;
  }
}


.first-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(to right, #ff8a00, #ff2d55); /* グラデ追加 */
  color: #fff;
  padding: 16px 24px;
  border: none;
  border-radius: 40px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 45, 85, 0.3); /* ピンク寄りの影に調整 */
  animation: floatyBtn 2s ease-in-out infinite;
  transition: all 0.3s ease;
  border: 2px solid #FFFFFF;
  height: auto !important;
}

.first-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 6px 16px rgba(255, 45, 85, 0.4);
}

.first-button img {
  height: 32px;
  width: auto;
}

.first-button .phone-number a {
  color: #fff;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
}

@keyframes floatyBtn {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

