/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ',
    Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  word-wrap: break-word;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.check-board {
  position: fixed;
  top: 5px;
  left: 5px;
  background-color: rgba(213, 27, 27, 1);
  z-index: 1000;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  width: 100px;
  text-align: center;
}
/* ヘッダー */
.page-header {
  background-color: #fff;
  padding: 0;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;

  margin: 0 auto;
  width: 100%;
}

.logo-group {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  gap: 25px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  height: auto;
  object-fit: contain;
}

/* 通常時の大丸ロゴ（1番目） */
.logo-item:first-child img {
  width: 134px;
}

/* 通常時の松坂屋ロゴ（2番目） */
.logo-item:last-child img {
  width: 130px;
}

.page-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  background-color: #333333;
  line-height: 1;
  padding: 11px 0;
}

/* メインコンテンツ */
.main-content {
  flex: 1;
  padding: 20px;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
  background-color: #ffffff;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* トップ画面 */
.description {
  margin-bottom: 30px;
  padding: 0 10px;
}

.description p {
  font-size: 14px;
  line-height: 1.8;
  color: #000;
  text-align: left;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.button-description {
  margin-bottom: 0;
  text-align: center;
}

.choice-button {
  background-color: #ffffff;
  border: 1px solid #000000;
  color: #000000;
  border-radius: 0;
  padding: 10px 0;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  min-height: 60px;
  margin-bottom: 10px;
}
.choice-button span {
  font-weight: bold;
}

.choice-button:hover {
  background-color: #f5f5f5;
}

.choice-button .content-container {
  background-image: url(../img/btn_arrow_right.svg);
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px 20px;
}
.choice-button.none .content-container {
  background-image: none;
}
.button-group .choice-button:last-of-type {
  margin-bottom: 0;
}

/* フッター */
@media only screen and (max-width: 440px) {
  .Footer {
    background: #333333;
    color: #fff;
    margin-top: 0 !important;
    padding: 30px 15px;
    position: relative;
  }
}
.page-footer {
  background-color: #ffffff;
  padding: 0;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.back-button {
  background-color: #333333;
  color: #ffffff;
  border: 0;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 16px;
  margin: 0 0 15px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  background-image: url(../img/btn_arrow_left_white.svg);
  background-repeat: no-repeat;
  background-position: left 20px center;
  background-size: 20px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.back-button:hover {
  background-color: #000000;
}

.contact-center-section {
  background-color: #ffffff;
  padding: 0 15px 30px 15px;
  max-width: 440px;
  margin: 0 auto 20px auto;
  width: 100%;
}

.contact-center-description {
  margin-bottom: 10px;
}

.contact-center-description p {
  font-size: 12px;
  line-height: 1.8;
  color: #000000;
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
}

.contact-center-button {
  background-color: #fff;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  position: relative;
  text-align: center;

  font-size: 16px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  color: #333;
  min-height: 60px;
  background-image: url('../img/btn_arrow_right.svg');
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 20px 20px;
}

.contact-center-button:hover {
  background-color: #f5f5f5;
}

.contact-center-button:active {
  transform: translateY(1px);
}
/* 電話番号リンク */
.tel-link {
  font-family: monospace;
  color: #000000;
  font-weight: bold;
  font-size: 18px;
  text-decoration: none;
}

/* 画面タイトル */

.screen-title {
  text-align: center;
  padding: 15px 0;
  margin-bottom: 4px;
  background-color: #f5f5f5;
  border-radius: 0;
  position: relative;
  cursor: pointer;
}
.screen .screen-title:last-of-type {
  margin-bottom: 20px;
}
#SP-901 .screen-title {
  margin-bottom: 10px;
}
.screen-title:hover {
  background-color: #eeeeee;
}
.screen-title-container {
  background-image: url('../img/btn-close.svg');
  background-repeat: no-repeat;
  background-position: left 20px top;
  background-size: 20px 20px;
}
.screen-title h2 {
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  margin: 0;
}

.ticket-number-container {
  margin: 10px 0 0 0;
}

.screen-title-container dl {
  display: flex;
  align-items: center;
  width: 240px;
  margin: 0 auto;
  border: 1px solid #000000;
  margin-bottom: 4px;
}

.screen-title-container dt {
  font-weight: bold;
  width: 40px;
  line-height: 40px;
  background-color: #dddddd;
  font-size: 12px;
}
.screen-title-container dd {
  font-weight: bold;
  width: calc(100% - 40px);
  line-height: 40px;
  background-color: #ffffff;
  text-align: center;
  letter-spacing: 2px;
  font-family: monospace;
  font-size: 18px;
}

/* セクションタイトル */
.section-title {
  margin: 0 0 20px 0;
}
#SP-000 .section-title {
  margin: 0 0 20px 0;
}
.section-title h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

/* 伝票ボタンの特別スタイル */
.choice-button.ticket-button {
  flex-direction: row;
  align-items: center;
  min-height: 120px;
  padding: 20px;
  position: relative;
}

.section-description {
  margin-bottom: 30px;
}
.screen .section-description:last-of-type {
  margin-bottom: 0;
}

.content-title {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
}
.content-text {
  padding: 0;
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 15px;
  text-align: center;
}
.content-text:last-child {
  margin-bottom: 0;
}
.content-image {
  padding: 10px;
  border-radius: 8px;
  margin: 20px auto 0 auto;
  max-width: 400px;
}
.content-image img {
  width: 100%;
}
.content-note {
  font-size: 12px;
  color: #666666;
  text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 440px) {
  .page-header {
    padding: 0;
  }

  .logo-group {
    gap: 25px;
  }

  /* レスポンシブ時の大丸ロゴ */
  .logo-item:first-child img {
    width: 130px;
  }

  /* レスポンシブ時の松坂屋ロゴ */
  .logo-item:last-child img {
    width: 130px;
  }

  .page-title {
    font-size: 18px;
  }

  .main-content {
    padding: 15px;
  }

  .choice-button {
    padding: 20px 0;
    font-size: 14px;
  }
  .choice-button .content-container {
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px 15px;
  }
  .choice-button .content-container > div {
    padding: 0 30px;
  }

  .back-button {
    margin: 15px;
    padding: 10px 25px;
    font-size: 15px;
  }
  .contact-center-description p br {
    display: none;
  }
  .contact-center-button {
    padding: 14px;
    font-size: 15px;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px 15px;
  }
  .screen-title-container {
    background-position: left 10px top;
    background-size: 15px 15px;
  }
  .screen-title h2 {
    font-size: 16px;
  }

  .section-title h3 {
    font-size: 15px;
  }

  .choice-button.ticket-button {
    min-height: 100px;
    padding: 15px;
  }

  .content-title {
    font-size: 14px;
  }

  .content-image {
    margin: 0 auto 0 auto;
  }
  .content-image .content-title {
    font-size: 12px;
  }

  .content-image .content-container {
    font-size: 10px;
  }

  .online-description {
    padding: 12px 15px;
  }
}

/* 入力フォーム */
.input-form {
  margin: 30px 0;
}

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

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #000;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #0066cc;
}

.confirm-button {
  background-color: #84b9cb;
  color: #ffffff;
  border: 0;
  border-radius: 25px;
  margin: 20px auto 0 auto;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  min-width: 240px;
  background-image: url(../img/btn_arrow_left_white.svg);
  background-repeat: no-repeat;
  background-position: left 20px center;
  background-size: 20px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.confirm-button:hover {
  background-color: #5690a3;
}

/* お問い合わせセンター情報 */
.contact-info {
  padding: 20px 0 0 20px;
}
.contact-info p {
  text-align: center;
  margin-bottom: 30px;
}
.contact-text {
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 30px 20px;
  margin-bottom: 30px;
}
.contact-info .contact-text:last-of-type {
  margin-bottom: 0;
}
.contact-text h3 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  font-weight: bold;
}
.contact-text dl {
  margin-bottom: 15px;
}
.contact-text dl:last-of-type {
  margin-bottom: 0;
}
.contact-text dt {
  font-weight: bold;
  text-align: center;
}
.contact-text dd {
  font-weight: normal;
  text-align: center;
}

/* SP-201 オンライン画面専用スタイル */
.online-description {
  background-color: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 30px;
  position: relative;
  background-image: url('../img/btn-close.svg');
  background-repeat: no-repeat;
  background-position: top 10px right 15px;
  background-size: 20px 20px;
}

.online-description p {
  font-size: 14px;
  font-weight: normal;
  color: #333;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

/* エラーメッセージ */
.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  text-align: center;
  font-weight: bold;
  display: none;
}

.error-message.show {
  display: block;
}

/* number型inputのスピナーを非表示 */
.form-group input[type='number']::-webkit-outer-spin-button,
.form-group input[type='number']::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-group input[type='number'] {
  -moz-appearance: textfield;
}

/* ページトップボタン */
.Pagetop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  background-color: #333333;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.Pagetop:hover {
  background-color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.Pagetop a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.Pagetop a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid #ffffff;
}

/* レスポンシブ対応 */
@media (max-width: 440px) {
  .Pagetop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  .Pagetop a::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid #ffffff;
  }
}
