/* ========================================
   全体
======================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  background: #f6f3ee;

  color: #333;

  line-height: 1.6;
}


/* ========================================
   メインコンテナ
======================================== */

.container {
  width: 100%;

  max-width: 680px;

  margin: 0 auto;

  padding: 40px 20px 60px;
}


/* ========================================
   フォームカード
======================================== */

.form-card {
  background: #fff;

  padding: 40px;

  border-radius: 18px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.08);
}


/* ========================================
   見出し
======================================== */

h1 {
  text-align: center;

  margin: 0 0 12px;

  font-size: 30px;

  font-weight: 700;

  letter-spacing: 0.05em;

  color: #333;
}


.description {
  text-align: center;

  color: #777;

  margin: 0 0 35px;

  font-size: 15px;
}


/* ========================================
   入力項目
======================================== */

.form-group {
  margin-bottom: 26px;
}


.form-group > label,
legend {
  display: block;

  margin-bottom: 9px;

  font-size: 15px;

  font-weight: 700;

  color: #444;
}


/* ========================================
   テキスト・日付・セレクト
======================================== */

input[type="text"],
input[type="date"],
select {
  width: 100%;

  min-height: 50px;

  padding: 12px 15px;

  border: 1px solid #d5d5d5;

  border-radius: 9px;

  background: #fff;

  color: #333;

  font-size: 16px;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}


input[type="text"]::placeholder {
  color: #aaa;
}


input[type="text"]:focus,
input[type="date"]:focus,
select:focus {
  outline: none;

  border-color: #c47a45;

  box-shadow:
    0 0 0 3px rgba(196, 122, 69, 0.12);
}


/* ========================================
   ラジオボタン
======================================== */

fieldset {
  border: none;

  padding: 0;

  margin: 0 0 26px;
}


.menu-select {
  display: flex;

  gap: 14px;
}


.menu-option {
  position: relative;

  flex: 1;

  display: flex;

  align-items: center;

  justify-content: center;

  min-height: 58px;

  padding: 14px;

  border: 1px solid #d5d5d5;

  border-radius: 10px;

  background: #fff;

  cursor: pointer;

  font-weight: 600;

  color: #444;

  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}


.menu-option:hover {
  border-color: #c47a45;

  background: #fffaf6;
}


.menu-option:has(input:checked) {
  border-color: #c47a45;

  background: #fff6ef;

  box-shadow:
    0 0 0 2px rgba(196, 122, 69, 0.12);
}


.menu-option input {
  margin-right: 8px;

  accent-color: #c47a45;
}


/* ========================================
   メインボタン
======================================== */

.next-button,
button {
  width: 100%;

  min-height: 54px;

  padding: 14px 20px;

  border: none;

  border-radius: 10px;

  background: #c47a45;

  color: #fff;

  font-size: 16px;

  font-weight: 700;

  letter-spacing: 0.05em;

  cursor: pointer;

  transition:
    background 0.2s,
    transform 0.1s,
    box-shadow 0.2s;
}


.next-button:hover,
button:hover {
  background: #ad6736;

  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.12);
}


.next-button:active,
button:active {
  transform: translateY(1px);
}


/* ========================================
   お客様情報
======================================== */

.customer-info {
  margin-bottom: 28px;

  padding: 16px 18px;

  border-radius: 10px;

  background: #f7f5f1;

  border-left: 4px solid #c47a45;
}


.customer-info p {
  margin: 4px 0;

  font-size: 15px;
}


.customer-info span {
  font-weight: 600;
}


/* ========================================
   メニュー写真
======================================== */

.menu-photo {
  margin-bottom: 28px;
}


.photo-placeholder {
  width: 100%;

  height: 260px;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-direction: column;

  text-align: center;

  background: #eee9e2;

  border-radius: 12px;

  color: #999;

  font-size: 18px;

  overflow: hidden;
}


.photo-placeholder small {
  margin-top: 5px;

  font-size: 13px;

  color: #aaa;
}


/* ========================================
   注意事項
======================================== */

.notice {
  margin: 0 0 30px;

  padding: 20px;

  background: #fff8e7;

  border: 1px solid #ead9a8;

  border-radius: 10px;
}


.notice h2 {
  margin: 0 0 15px;

  font-size: 18px;

  color: #6d5525;
}


.notice p {
  margin: 9px 0;

  font-size: 14px;

  line-height: 1.7;
}


.notice .important {
  color: #c0392b;
}


/* ========================================
   予約日の説明
======================================== */

.date-label {
  display: block;

  margin-bottom: 4px;

  font-size: 15px;

  font-weight: 700;

  color: #444;
}


.help-text {
  display: block;

  margin-bottom: 10px;

  font-size: 13px;

  font-weight: normal;

  line-height: 1.6;

  color: #777;
}


/* ========================================
   金額
======================================== */

.price-box {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin: 28px 0;

  padding: 18px 20px;

  background: #f7f5f1;

  border-radius: 10px;

  font-size: 16px;

  font-weight: 600;
}


.price-box strong {
  margin-left: 8px;

  font-size: 30px;

  font-weight: 700;

  color: #c47a45;
}


/* ========================================
   戻るリンク
======================================== */

.back-link {
  display: block;

  margin-top: 20px;

  text-align: center;

  color: #777;

  font-size: 14px;

  text-decoration: none;

  transition: color 0.2s;
}


.back-link:hover {
  color: #c47a45;

  text-decoration: underline;
}


/* ========================================
   スマートフォン
======================================== */

@media (max-width: 600px) {

  .container {
    padding: 20px 12px 40px;
  }


  .form-card {
    padding: 25px 18px;

    border-radius: 14px;
  }


  h1 {
    font-size: 25px;
  }


  .description {
    font-size: 14px;

    margin-bottom: 28px;
  }


  .menu-select {
    flex-direction: column;

    gap: 10px;
  }


  .menu-option {
    min-height: 56px;
  }


  .photo-placeholder {
    height: 210px;
  }


  .notice {
    padding: 16px;
  }


  .notice h2 {
    font-size: 17px;
  }


  .notice p {
    font-size: 13px;
  }


  .help-text {
    font-size: 12px;
  }


  .price-box {
    padding: 16px;
  }


  .price-box strong {
    font-size: 27px;
  }

}

/* ========================================
   メニュー写真
======================================== */

.menu-photo {
  width: 100%;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 12px;
}

.menu-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  cursor: pointer;
}


/* ========================================
   メニュー画像 拡大表示
======================================== */

.menu-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);

  align-items: center;
  justify-content: center;

  overflow: auto;
}


/* 拡大表示をON */
.menu-modal.show {
  display: flex;
}


/* 拡大画像 */
.menu-modal img {
  display: block;
  width: auto;
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
}

.time-limit-message {
  margin: 15px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #c47a45;
}

#confirmButton:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================
   注文キャンセルボタン
========================= */

.cancel-area {
  margin-top: 25px;
  text-align: center;
}

.cancel-button {
  display: block;
  width: 100%;
  box-sizing: border-box;

  padding: 14px 20px;

  background: #fff;
  color: #c0392b;

  border: 2px solid #c0392b;
  border-radius: 10px;

  font-size: 16px;
  font-weight: bold;

  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 0.2s,
    color 0.2s;
}

.cancel-button:hover {
  background: #c0392b;
  color: #fff;
}
