@charset "utf-8";

/* for kdf-contact.html (S)
---------------------------------------------------------------------------*/
/* =========================================================
   for kdf-contact.html — 完全再構築版 CSS
   ========================================================= */

/* ▼ 基本レイアウト
--------------------------------------------------------- */
.contact-form-block {
  width: 100%;
}

.js-ajax-form[hidden] {
  display: none !important;
}

.form-global-error {
  border: 1px solid #f0c2c2;
  background: #fff4f4;
  color: #9b2e2e;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* ▼ カードUI：フォーム全体
--------------------------------------------------------- */
.contact-form-inner {
  background: #ffffff;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.06);
  font-family: "Noto Serif JP", serif;
}

/* ▼ 各フォーム行
--------------------------------------------------------- */
.form-row {
  background: #fff;
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  margin-bottom: 1.6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

/* ▼ ラベル */
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: .6rem;
  font-size: 1rem;
  color: #222;
  letter-spacing: .02em;
}

/* ▼ 必須バッジ */
.required-badge {
  background: #b30000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-left: 6px;
}

/* ▼ 入力欄（共通）
--------------------------------------------------------- */
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 15px;
  background: #fafafa;
  box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #333;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
  outline: none;
  transition: all .25s ease;
}

/* ▼ エラー表示
--------------------------------------------------------- */
.form-row.is-error input,
.form-row.is-error select,
.form-row.is-error textarea {
  border-color: #d94c4c;
  background: #fff8f8;
}

.form-row.is-error .form-label {
  color: #972f2f;
}

/* ▼ エラー文（入力欄の下に統一）
--------------------------------------------------------- */
.form-error-inline {
  display: none;
  margin-top: 6px;
  color: #d00;
  font-size: 14px;
  line-height: 1.4;
}

/* ▼ プルダウン矢印
--------------------------------------------------------- */
.h-adr select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.8rem auto;
  cursor: pointer;
}

/* ▼ セレクト背景制御
--------------------------------------------------------- */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  background: transparent !important;
  position: relative;
  z-index: 2;
}

.select-wrapper .select-bg {
  position: absolute;
  inset: 0;
  background: #fafafa;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
  transition: .25s;
}

.select-wrapper.filled .select-bg {
  background: #e8f0fe !important;
  border-color: #7aa7e9 !important;
}

/* ▼ オートフィル
--------------------------------------------------------- */
input:-webkit-autofill,
select:-webkit-autofill,
textarea:-webkit-autofill {
  background-color: #e8f0fe !important;
  box-shadow: 0 0 0px 1000px #e8f0fe inset !important;
  animation-name: autofill;
  animation-duration: 0.01s;
}

@keyframes autofill {
  from {}
  to {}
}

/* ▼ 入力済み背景色
--------------------------------------------------------- */
.input-filled {
  background: #e8f0fe !important;
  border-color: #7aa7e9 !important;
}

/* ▼ アイコン付き入力欄（メール・電話・郵便番号）
--------------------------------------------------------- */
.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon-wrapper i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #666;
  pointer-events: none;
  font-size: 16px;
}

.input-icon-wrapper input {
  width: 100%;
  height: 48px;
  padding-left: 40px !important;
  box-sizing: border-box;
}

/* ▼ 商品エリア
--------------------------------------------------------- */
#productArea {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 25px;
  transition:
    max-height .6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity .4s ease;
}

#productArea.open {
  max-height: 3000px;
  opacity: 1;
}

.product-table-wrapper {
  background: #fff;
  padding: 1.6rem;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.product-table thead th {
  background: #f3f3f3;
  padding: 14px 10px;
  font-weight: 600;
  border-bottom: 1px solid #e5e5e5;
}

.product-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.product-table tbody tr:hover {
  background: #fafafa;
}

.product-table input.product-qty {
  width: 60px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fafafa;
}

.product-table input.product-qty:focus {
  border-color: #333;
  background: #fff;
}

.total-box {
  margin-top: 20px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

/* ▼ ボタン
--------------------------------------------------------- */
.preview-buttons {
  display: flex;
  justify-content: center;
  gap: 16px; /* ボタン間の余白 */
  margin-top: 20px;
}

.preview-buttons button {
  flex: 1; /* ← これで均等幅の横並び */
  background: #111;
  color: #fff;
  border: 1px solid #000;
  padding: 14px 0; /* ← 横幅は flex に任せるので左右 padding は 0 */
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Noto Serif JP", serif;
  cursor: pointer;
  transition: all .25s ease;
  margin-bottom: 0; /* ← 縦並び用の余白は不要 */
}

.preview-buttons button:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.form-actions {
  text-align: center;
}

.form-actions .submit-button {
  display: inline-block;
  background: #111;
  color: #fff;
  border: 1px solid #000;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Noto Serif JP", serif;
  cursor: pointer;
  transition: all .25s ease;
}

.form-actions .submit-button:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.submit-button.disabled {
  background: #ccc !important;
  color: #777 !important;
  border: 1px solid #bbb !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ▼ 確認画面
--------------------------------------------------------- */
.form-preview-area {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 3rem 2.5rem;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.form-preview-box dt {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  border-left: 4px solid #333;
  padding-left: .7rem;
  margin-top: 2rem;
}

.form-preview-box dd {
  background: #f8f8f8;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-top: .7rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* ▼ レスポンシブ
--------------------------------------------------------- */
@media (max-width: 767px) {
  .contact-form-inner {
    border-radius: 22px;
  }
  .submit-button {
    width: 100%;
  }
}

.hp-field {
  display: none !important;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: "Noto Serif JP", serif !important;
}

/* ▼ 確認画面へ進むボタンを中央寄せ */
.form-actions {
  text-align: center;
}

.submit-button {
  width: auto !important;
  display: inline-block;
}

/* ▼ 確認画面の戻る・送信するボタンも中央寄せ */
.preview-buttons {
  text-align: center;
}

.preview-buttons button {
  display: inline-block !important;
}

/* ピンの共通設定 */
.product-select-note .note-icon {
  display: inline-block;
  transition: transform .3s ease, color .3s ease;
}

/* 初期表示：黒 */
.product-select-note .pin-horizontal {
  transform: rotate(45deg);
  color: #000 !important;
  opacity: 1;
}

/* 商品リストを開いたとき：青 */
.product-select-note .pin-vertical {
  transform: rotate(0deg);
  color: #003366 !important;
  opacity: 1;
}

/* ボタン：初期は黒で固定 */
#showProductsBtn {
  background-color: #000 !important;
  color: #fff;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* hover しても黒のまま */
#showProductsBtn:hover {
  background-color: #000 !important;
}

/* focus しても黒のまま */
#showProductsBtn:focus {
  background-color: #000 !important;
  outline: none;
}

/* 商品リストが開いたときだけ青 */
#showProductsBtn.active {
  background-color: #003366 !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

/* for kdf-contact.html (E)
---------------------------------------------------------------------------*/
