@charset "UTF-8";

/* Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 60px;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  position: absolute;
  left: 1rem;
  cursor: default;
}

.logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  margin-left: 0;
}

.progress-bar {
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  position: relative;
}

.progress-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #93C5FD;
  background-color: #ffffff;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-number {
  font-size: 14px;
  font-weight: 600;
  color: #60A5FA;
  transition: color 0.3s ease;
}

/* アクティブなステップ：弱い青系の塗りつぶし、白い数字、グラデーション */
.progress-step.active .progress-circle {
  border-color: #60A5FA;
  background: linear-gradient(135deg, #93C5FD 0%, #60A5FA 100%);
  box-shadow: 0 2px 4px rgba(96, 165, 250, 0.2);
}

.progress-step.active .progress-number {
  color: #ffffff;
}

/* 未完了ステップ：弱い青系のアウトライン、弱い青系の数字 */
.progress-step:not(.active) .progress-circle {
  border-color: #93C5FD;
  background-color: #ffffff;
}

.progress-step:not(.active) .progress-number {
  color: #60A5FA;
}

.progress-line {
  width: 60px;
  height: 2px;
  background-color: #d1d5db;
  position: relative;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* アクティブな線を弱い青系に */
.progress-line.active {
  background-color: #60A5FA;
}

/* アクティブでない線はグレー */
.progress-line:not(.active) {
  background-color: #d1d5db;
}

/* contactForm */
.contactForm {
  padding: 0;
}

.contactForm form {
  background: #ffffff6e;
  height: 100%;
  margin: 0 auto;
  padding: 5px 20px;
  border-radius: 10px;
  align-content: center;
}

.contactForm form h2 {
  margin-bottom: 0;
  text-align: center;
  color: #1645A1;
}

.contactForm form h2:after {
  background: #CB0C3E;
}

.contactForm input[type="text"],
.contactForm input[type="tel"],
.contactForm input[type="email"] {
  width: 100%;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
  padding: 1em;
  font-size: 1.2rem;
}

.comment textarea {
  width: 100%;
  height: 150px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
  padding: 1em;
  font-size: 1.6rem;
}

.contactForm form h3 {
  font-size: 1.2rem;
  margin: 0.5rem;
  color: #424242;
}

.contactForm form h3 span {
  font-size: .8em;
  background: #2986F3;
  color: #fff;
  padding: .2em .5em;
  border-radius: 3px;
  margin: 0 0 0 .5em;
  font-weight: normal;
}

.contactForm form p {
  font-size: 1.4rem;
  width: 100%;
  text-align: center;
  line-height: 1rem;
  margin: 2rem auto;
}

.contactForm form p a {
  color: #2986F3;
}

.contactForm form p.att {
  font-size: 1.0rem;
  text-align: left;
  line-height: 1.3;
  width: 100%;
  margin: 0;
  color: #333;
}

.contactForm input[type="submit"] {
  font-family: 'Noto Sans JP', "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  background: #1645A1;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 60px;
  margin: 0 auto;
  border: none;
  border-radius: 30px;
  transition: .3s;
  cursor: pointer;
}

.contactForm input[type="submit"]:hover {
  background: #2986F3;
  opacity: 1;
}

.contactForm form .row {
  display: grid;
  text-align: left;
}

.contactForm form .row .w50 {
  width: 100%;
}

.contactForm form .row .w30 {
  width: 30%;
}

.contactForm form .row .w70 {
  width: 68%;
}

/* Terms Modal */
.terms-modal-txt {
  font-size: 1.0rem;
}

.terms-modal {
  display: none;
  /* 初期状態では非表示 */
  position: fixed;
  z-index: 1999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

/* モーダルコンテンツ */
.terms-modal-content {
  display: flex;
  flex-direction: column;
  background-color: #fefefe;
  margin: 10% auto;
  padding: 0 20px;
  border: 1px solid #888;
  width: 70%;
  max-height: 80vh;
  /* コンテンツが画面に収まるように最大高さを設定 */
  overflow-y: hidden;
  word-wrap: break-word;

  /* 長い単語を適切に折り返す */
  @media screen and (max-width: 780px) {
    width: 80%;
  }
}

/* クローズボタン */
.terms-modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  align-self: flex-end;
  cursor: pointer;

  @media screen and (max-width: 780px) {
    font-size: 22px;
  }
}

.terms-modal-close:hover,
.terms-modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* モーダル内テキスト */
.terms-modal-txt {
  max-height: calc(40vh - 40px);
  overflow-y: auto;
  padding: 0 20px 20px;
  flex: 1;
  text-align: left;
  font-size: 1.4rem;

  @media screen and (max-width: 780px) {
    font-size: 1.2rem;
  }
}

.terms-modal-txt ol {
  padding-left: 10px;
  list-style-type: decimal;
}

.terms-modal-txt ul {
  padding-left: 20px;
  font-weight: 500;
}

.terms-modal-txt .list-num {
  margin: 1rem 0 2rem;
  font-weight: 600;
}

.terms-modal-txt .circle {
  list-style-type: circle;
  margin-left: 10px;
}

.terms-modal-txt .square {
  list-style-type: square;
  margin-left: 10px;
}

.terms-modal-txt .space {
  margin-bottom: 20px;
}

.terms-modal-txt .txt-bold {
  font-weight: 600;
}

.terms-modal-txt .no-type {
  list-style-type: none;
}

.terms-modal-txt p {
  margin: 10px 0 20px 10px;
  font-weight: 500;
}

.terms-modal-txt .numbered-list {
  list-style-type: none;
  padding-left: 20px;
  counter-reset: item;
}

.terms-modal-txt .numbered-list li {
  text-indent: -30px;
}

.terms-modal-txt .numbered-list li::before {
  content: counter(item) "）";
  counter-increment: item;
  margin-right: 10px;
}

/* Form Elements */
.selectBox {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 3px;
  height: 45px;
}

.selectBox:after {
  content: "";
  background: url(../img/selectArrow.png) no-repeat;
  width: 10px;
  height: 6px;
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  right: .5em;
  pointer-events: none;
}

select {
  width: 100%;
  height: 100%;
  font-size: 1.2rem;
  box-sizing: border-box;
  padding: 0.5em;
  text-indent: 0.01px;
  text-overflow: ellipsis;
  background: #ffffff;
  vertical-align: middle;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

select option {
  background-color: #fff;
  color: #333;
  white-space: normal;
}

select::-ms-expand {
  display: none;
}

select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #828c9a;
}

/* Validation */
.validation_error {
  display: none;
  color: #FF6B6B;
}

.error_messe {
  color: #CB0C3E;
}

/* Form Table */
.formTable {
  width: 90%;
  margin: 2em auto;
}

.formTable th {
  width: 30%;
  text-align: left;
  padding: .5em;
}

.sideScroll {
  width: 100%;
  overflow-x: scroll;
  border: 2px solid #ccc;
}

/* Date Time Table */
.selectDatetimeTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #666;
  font-size: 1.1rem;
}

.selectDatetimeTable__cell {
  height: 40px;
  text-align: center;
  vertical-align: middle;
}

.selectDatetimeTable__disable {
  background-color: #f1f1f1;
}

.selectDatetimeTable__leftHeading {
  height: 40px;
  padding: 0 10px;
  text-align: center;
  vertical-align: middle;
  position: sticky;
  left: 0;
  background-color: white;
}

.selectDatetimeTable__topHeading {
  padding: 0 20px;
  height: 30px;
  text-align: center;
  vertical-align: middle;
}

.selectDatetimeTable td,
.selectDatetimeTable th {
  border: 1px solid #ccc;
  border-spacing: 0;
}

@media screen and (max-width: 1000px) {
  .selectDatetimeTable__leftHeading {
    padding: 0 5px;
  }

  .selectDatetimeTable__topHeading {
    padding: 0 5px;
  }
}

.selectDatetimeTable__icon {
  height: 30px;
  color: #1645A1;
}

.selectDatetimeTable--negative {
  color: #C4C4C4;
}

.selectDatetimeTable__label {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.selectDatetimeTable__labelText {
  display: none;
  color: #FFF;
  font-size: 1.0rem;
}

.selectDatetimeTable__radio {
  display: none;
}

.selectDatetimeTable__radio:hover~label>div>.selectDatetimeTable__icon {
  opacity: .3;
}

.selectDatetimeTable__radio:checked+label {
  background-color: #1645A1;
}

.selectDatetimeTable__radio:checked~label>.selectDatetimeTable__labelText {
  display: block;
}

.selectDatetimeTable__radio:checked~label>div>.selectDatetimeTable__icon {
  display: none;
}

.selectDatetimeTable__flexBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selectDatetimeTable__flexBox--center {
  justify-content: center;
}

/* Agreement */
.agreement {
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  margin: 15px 0;
}

.agreement span {
  cursor: pointer;
  color: #3f5b8b;
  text-decoration: underline;
}

.agreement a {
  color: #3f5b8b;
  text-decoration: underline;
}

.agreement__small {
  font-size: 12px;
  margin: 10px 0;
}

.agreement>input[type="checkbox"] {
  display: none;
}

/* カスタムチェックボックスのスタイル */
.agreement>input[type="checkbox"]+label {
  height: 20px;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  user-select: none;
}

.agreement>input[type="checkbox"]+label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
}

.agreement__small>input[type="checkbox"]+label:before {
  width: 15px;
  height: 15px;
}

/* チェックされた状態のスタイル */
.agreement>input[type="checkbox"]:checked+label:before {
  background-color: #1645A1;
  border-color: #1645A1;
}

.agreement>input[type="checkbox"]:checked+label:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.agreement__small>input[type="checkbox"]:checked+label:after {
  width: 4px;
  height: 8px;
}

.thanks-main {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.thanks-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
  border-radius: 20px;
  text-align: center;
  margin: 0 auto;
}

.thanks-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.thanks-section img {
  max-width: 4rem;
}

.thanks-section .subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Week Header */
.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1em;
  font-weight: bold;
  flex-wrap: wrap;
  gap: 0.5em;
  font-size: 1em;
}

.week-header button {
  background-color: #1645A1;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.week-header button:hover {
  background-color: #0056b3;
}

#week-title {
  flex: 1;
  text-align: center;
  font-size: 1.1rem;
  color: #333;
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-sizing: border-box;
  border-left: 1px solid #ccc;
}

/* カレンダーテーブルの文字色を明示的に設定 */
.conversation-container table,
.date-form-section table,
#reservation-container table {
  color: #333;
}

.conversation-container th,
.date-form-section th,
#reservation-container th {
  color: #333;
  background-color: #f8f8f8;
}

.conversation-container td,
.date-form-section td,
#reservation-container td {
  color: #333;
  background-color: #fff;
}

.conversation-container td.no-select,
.date-form-section td.no-select,
#reservation-container td.no-select {
  background-color: #f5f5f5;
  color: #aaa;
}

.scroll-hint {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-bottom: 0.5em;
  display: block;
}

td[disabled],
td.no-select {
  background-color: #f5f5f5;
  color: #aaa;
}

/* PC用のカレンダーテーブルスタイル - スクロール可能にする */
#reservation-container {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
  box-sizing: border-box;
}

#reservation-container table {
  min-width: 100%;
  width: auto;
  table-layout: fixed;
  border-collapse: collapse;
  box-sizing: border-box;
  margin: 0;
  border-right: 1px solid #ccc;
}

/* PC用のテーブルセルボーダー設定 */
#reservation-container th,
#reservation-container td {
  border: 1px solid #ccc;
  box-sizing: border-box;
}

/* PC用のテーブル列幅設定 - スクロール可能にするため固定幅を設定 */
#reservation-container th:first-child,
#reservation-container td:first-child {
  position: sticky;
  left: 0;
  z-index: 10;
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  background-color: #fff;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
  border-right: 2px solid #ccc;
}

#reservation-container th:first-child {
  background-color: #f8f8f8;
}

#reservation-container th:not(:first-child),
#reservation-container td:not(:first-child) {
  width: 100px;
  min-width: 100px;
}

/* Date Form */
.date-form {
  max-width: 960px;
  background: #fff;
  margin: 0 auto;
  border-radius: 20px;
  padding: 1rem;
  padding-top: 0;
  text-align: center;
}

.date-form h2 {
  font-size: 2.0rem;
}

.date-form p {
  font-size: 1.0rem;
}

.comment {
  text-align: left;
  margin-top: 2rem;
}

.comment h3 {
  font-size: 1.4rem;
}

.cta-btn-submit img {
  max-width: 70%;
}

/* Conversation Form */
.conversation-header {
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 16px 16px 0 0;
}

.conversation-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.remaining-questions {
  font-weight: bold;
  color: #1645A1;
}

.business-hours,
.phone-number {
  color: #666;
}

.conversation-container {
  min-height: 200px;
  width: 100%;
  overflow-y: auto;
  padding: 0.5rem;
  align-self: center;
}

.message {
  margin-bottom: 1rem;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bot-message {
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  margin-right: 3rem;
  scroll-margin-top: 70px;
}

.bot-avatar {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #E3F2FD;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #BBDEFB;
}

.bot-avatar img {
  width: 55px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.bot-avatar:empty::before {
  content: '👤';
  font-size: 24px;
}

.bot-message-content {
  flex: 1;
  position: relative;
}

.bot-message-content p {
  display: inline-block;
  background: #E3F2FD;
  color: #333;
  padding: 2rem;
  border-radius: 0 10px 10px 10px;
  margin: 0;
  width: 100%;
  line-height: 2;
  font-size: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
}

.user-message {
  text-align: right;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 2rem;
  margin-left: calc(0.75rem + 48px);
  position: relative;
}

.user-message p {
  display: inline-block;
  background: #1645A1;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 20px 20px 4px 20px;
  margin: 0;
  max-width: 80%;
  line-height: 1.5;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  position: relative;
}

.user-message p::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 10px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #1645A1;
}

.question-text {
  color: #333;
}

.privacy-link-text {
  cursor: pointer;
  color: #8B5CF6;
  text-decoration: underline;
}

.conversation-answers {
  width: 100%;
  padding: 1.5rem;
  background: #f5f5f5;
}

.user-message .conversation-answers {
  text-align: left;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.answer-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.875rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  position: relative;
  overflow: visible;
}

.answer-button:hover {
  background: #1645A1;
  color: white;
  border-color: #1645A1;
}

.answer-button:active {
  transform: scale(0.98);
}

.answer-button input[type="radio"] {
  margin-right: 0.75rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #1645A1;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.answer-button label {
  flex: 1;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding-left: calc(20px + 0.75rem + 0.875rem);
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  padding-right: 0.875rem;
  display: flex;
  align-items: center;
  z-index: 1;
}

.answer-button.selected {
  background: #fff;
  border-color: #1645A1;
  border-width: 2px;
  color: #333;
}

.answer-button.selected:hover {
  background: #1645A1;
  color: white;
  border-color: #1645A1;
}

.answer-input {
  width: auto;
  max-width: 400px;
  padding: 0.875rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.answer-input:focus {
  outline: none;
  border-color: #1645A1;
}

.answer-select {
  width: auto;
  max-width: 400px;
  padding: 0.875rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  cursor: pointer;
}

.answer-select:focus {
  outline: none;
  border-color: #1645A1;
}

.submit-button {
  background: #1645A1;
  color: white;
  border: none;
  width: auto;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.submit-button:hover {
  background: #2986F3;
  color: white;
}

/* カレンダー下のテキストエリア */
.date-form-textarea-wrapper {
  margin-top: 1.5rem;
  text-align: left;
}

.date-form-textarea-wrapper h3 {
  font-size: 1.0rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.date-form-textarea-wrapper textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.date-form-textarea-wrapper textarea:focus {
  outline: none;
  border-color: #1645A1;
}

/* カレンダー選択後の送信ボタン */
.date-selection-submit-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

.date-selection-submit-btn {
  background: #1645A1;
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 200px;
}

.date-selection-submit-btn:hover {
  background: #2986F3;
  color: white;
}

.date-selection-submit-btn:active {
  transform: scale(0.98);
}

.form-fields {
  margin-bottom: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.form-field .required {
  color: #ff0000;
  margin-left: 0.25rem;
}

.form-field input,
.form-field select {
  width: auto;
  max-width: 400px;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: #1645A1;
}

.form-field input.error,
.form-field select.error {
  border-color: #ff0000;
}

.date-wrapper {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.date-wrapper select {
  flex: 1;
}

.terms-checkbox {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.terms-checkbox label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.8rem;
}

.terms-checkbox input[type="checkbox"] {
  margin-right: 0.5rem;
  width: auto;
}

/* contact.html用の会話形式フォームスタイル */
.conversation-form-contact {
  width: 80%;
  max-width: 800px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.date-form-section,
.comment-section,
.agreement-section {
  padding: 0.5rem;
  background: #fff;
  border-radius: 8px;
}

.date-form-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.date-form-section p {
  margin-bottom: 1rem;
  color: #666;
  font-size: 0.9rem;
}

.comment-section h3 {
  font-size: 1.0rem;
  margin-bottom: 1rem;
  color: #333;
}

.comment-section textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 120px;
}

.comment-section textarea:focus {
  outline: none;
  border-color: #1645A1;
}

.agreement-section {
  margin-top: 1rem;
}

.agreement-section .cta-btn-submit {
  margin-top: 1.5rem;
  text-align: center;
}

/* Multi-input form container */
.multi-input-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.multi-input-field-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.multi-input-label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  text-align: left;
}

.multi-input-field {
  width: 100%;
  height: 45px;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-sizing: border-box;
  padding: 0 1em;
  font-size: 1.2rem;
  margin-left: 0;
  margin-right: 0;
}

.multi-input-container .answer-input {
  margin-left: 0;
  margin-right: 0;
}

.multi-input-container .submit-button {
  margin-top: 10px;
  margin-left: 0;
  margin-right: 0;
  text-align: center;
}

/* Responsive */
@media only screen and (max-width: 767px) {
  /* HTML/Body - 横スクロール防止 */
  html {
    overflow-x: hidden;
    max-width: 100vw;
  }

  body {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }

  /* Header */
  .header {
    padding: 0.75rem 1rem;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .logo {
    position: static;
  }

  .progress-bar-container {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #f5f5f5;
    padding: 0.75rem 1rem;
    z-index: 999;
    margin-left: 0;
    justify-content: center;
    border-top: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .progress-line {
    width: 40px;
  }

  .progress-circle {
    width: 28px;
    height: 28px;
  }

  .progress-number {
    font-size: 12px;
  }

  .contactForm form {
    max-width: 100%;
    padding: 1rem;
    margin: 0 0.5rem;
  }

  .contactForm form h3 {
    font-size: 1.4rem;
  }

  .contactForm form h2 {
    margin-bottom: 1em;
  }

  .contactForm input[type="text"],
  .contactForm input[type="tel"],
  .contactForm input[type="email"] {
    font-size: 1.0rem;
    height: auto;
    padding: 0.5rem;
  }

  .contactForm form textarea {
    font-size: 1.5rem;
    height: auto;
    padding: .5em;
  }

  .contactForm form h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
  }

  .contactForm form h3 span {
    font-size: .8em;
    padding: .2em .5em;
    border-radius: 3px;
    margin: 0 0 0 .5em;
    font-weight: normal;
  }

  .contactForm form p {
    width: auto;
    line-height: 1.6;
    margin: 10px auto;
  }

  .contactForm input[type="submit"] {
    background: #1645A1;
    width: 100%;
    height: 60px;
    color: #fff;
    border: none;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
    font-size: 1.8rem;
    transition: .3s;
  }

  .contactForm input[type="submit"]:hover {
    background: #2986F3;
    color: #fff;
  }

  .contactForm form .row {
    display: grid;
  }

  .contactForm form .row .w50 {
    width: 100%;
  }

  .contactForm form .row .w30 {
    width: 30%;
  }

  .contactForm form .row .w70 {
    width: 68%;
  }

  .selectBox {
    height: auto;
  }

  select {
    font-size: 1.0rem;
    height: auto;
  }


  .thanks-section {
    display: grid;
    margin: 0;
    padding: 0;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .thanks-main {
    margin-top: 110px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: calc(100vh - 110px - 100px);
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .thanks-section h1 {
    font-size: 1.7rem;
  }

  .thanks-section .subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }

  .thanks-section p {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.5;
  }

  .scroll-hint {
    display: block;
    /* スマホ・タブレットで表示 */
  }

  .date-form h2 {
    font-size: 1.4rem;
  }

  .week-header button {
    padding: 4px 8px;
    font-size: 0.8rem;
  }

  th,
  td {
    font-size: 0.8rem;
    color: #333;
  }

  .date-form {
    padding: 0.5rem;
    padding-top: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .date-form-section {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .comment h3 {
    font-size: 1rem;
  }

  .cta-btn-submit img {
    max-width: 100%;
  }

  .conversation-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .conversation-container {
    max-height: none;
    height: auto;
    overflow-y: visible;
    padding: 0;
    padding-top: 20px;
    width: 100%;
  }

  /* conversation-form-contact */
  .conversation-form-contact {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .date-form-section,
  .comment-section,
  .agreement-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .bot-avatar {
    width: 90px;
    height: 90px;
  }

  .bot-avatar img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .bot-message-content p,
  .user-message p {
    max-width: 100%;
    font-size: 0.8rem;
  }

  .answer-button input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
  }

  .date-wrapper {
    flex-direction: column;
    max-width: 100%;
  }

  .answer-input,
  .answer-select,
  .form-field input,
  .form-field select {
    max-width: 100%;
  }

  .submit-button {
    max-width: 100%;
  }

  .date-selection-submit-btn {
    min-width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* カレンダー下のテキストエリア */
  .date-form-textarea-wrapper {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0;
  }

  .date-form-textarea-wrapper h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .date-form-textarea-wrapper textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.85rem;
    min-height: 100px;
  }

  /* カレンダー選択後の送信ボタン */
  .date-selection-submit-wrapper {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0;
  }

  /* Multi-input container */
  .multi-input-container {
    max-width: 100%;
    padding: 0.5rem;
    margin: 0;
  }

  .multi-input-field {
    font-size: 1rem;
  }

  /* Table wrapper */
  .table-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    /* スクロール時も左端のボーダーが見えるように設定 */
    border-left: 1px solid #ccc;
  }

  /* カレンダーテーブル - SP用の横幅調整 */
  #reservation-container {
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
    box-sizing: border-box;
  }

  #reservation-container table {
    min-width: 100%;
    width: auto;
    table-layout: fixed;
    font-size: 0.7rem;
    border-collapse: collapse;
    box-sizing: border-box;
    margin: 0;
  }

  #reservation-container th,
  #reservation-container td {
    padding: 2px 1px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ccc;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
  }

  #reservation-container th:not(:first-child) {
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: normal;
  }

  #reservation-container td:first-child,
  #reservation-container th:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    font-size: 0.65rem;
    padding: 2px 4px;
    background-color: #fff;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    /* 左端のボーダーは.table-wrapperで設定 */
    /* sticky列の右側にボーダーを設定（スクロール時に見える） */
    border-right: 2px solid #ccc;
  }

  #reservation-container th:first-child {
    background-color: #f8f8f8;
  }

  #reservation-container th:not(:first-child),
  #reservation-container td:not(:first-child) {
    width: 70px;
    min-width: 70px;
  }

  #reservation-container td {
    height: 35px;
    min-height: 35px;
  }

  #reservation-container table {
    border-right: 1px solid #ccc;
  }

  #reservation-container td input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
  }

  .scroll-hint {
    display: block !important;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin-bottom: 0.5em;
    padding: 0.5em;
  }

  /* Week header */
  .week-header {
    margin: 0;
    padding: 0;
  }

  #week-title {
    font-size: 0.9rem;
    color: #333;
  }

  .bot-message {
    gap: 0.5rem;
    margin-right: 0;
    margin-left: 0;
    scroll-margin-top: 130px;
  }

  .user-message {
    margin-left: 0;
  }

  .bot-message-content p {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .user-message p {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

  /* Answer button */
  .answer-button {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  /* Answer input */
  .answer-input,
  .answer-select {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Form fields */
  .form-field input,
  .form-field select {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Comment section */
  .comment-section textarea {
    width: 100%;
  }

  /* CTA button */
  .cta-btn-submit {
    width: 100%;
  }

  .cta-btn-submit img {
    width: 100%;
    max-width: 100%;
  }

  /* Footer - 固定化を解除 */
  footer {
    position: static !important;
    bottom: auto !important;
  }

  /* Terms Modal - SP用の高さ最大化 */
  .terms-modal-content {
    margin: 20px auto;
    max-height: calc(100vh - 40px);
    height: calc(100vh - 40px);
    width: 90%;
  }

  .terms-modal-txt {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

/* ChatBoost ポップアップを非表示にする */
/* TODO:GCB対応後削除 */
#chatboost_cv_embed_js-popup,
[id^="chatboost_cv_embed"],
[class*="chatboost_cv_embed"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

