/* ======================
   Form main
====================== */

body {
  background: /* #322d29 */ #24211e;
  color: #fff;
  font-family: sans-serif;
  margin: 0;
}

/* Domestic form specific styles */
.domestic-form {
  box-sizing: border-box;
  background-color: #f9f9ff;
  border: 1px solid #ccd;
  padding: 20px;
  border-radius: 8px;
}

/* Overseas form specific styles */
.overseas-form {
  box-sizing: border-box;
  background-color: #fff9f9;
  border: 1px solid #dcc;
  padding: 20px;
  border-radius: 8px;
}

.container, .domestic-container, .overseas-container, .confirm-section,
.confirm-section_dms, .confirm-section_ovs, .thanks-container, .ws-container,  .confirm-section_ws, .thanks-container_ws  {
  max-width: 860px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 20px;
  box-sizing: border-box;
}

 .container { background-color: rgba(255, 250, 235, 0.65); color: #322d29; }
 .domestic-container { background-color: #293640; }
 .confirm-section_dms  { background-color: #293640; }
 .overseas-container { background-color: #62785b; }
 .confirm-section_ovs  { background-color: #62785b; }
 .ws-container, .confirm-section_ws { background-color: #771730; }
 .thanks-container_ws { background-color: #771730; }
 .thanks-container  { background-color: #b6b0a1; }

h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 22px;
}

h1 > span {
display: inline-block;
font-size: 16px;
font-weight: normal;
}  

.row {
  display: flex;
  margin-top: 30px;
}

.col {
  flex: 1;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
  padding-bottom: 3px;
}

label > span,
.order_confirm > dt span,
.order_confirm > dd span {
display: inline-block;
color:#f1eee2;
font-size: 86%;
font-weight: normal;
}  

.small {
  font-weight: normal;
  color: #f1eee2;
  font-size: 0.85em;
}

.midashi {
  border-left: 8px solid #fff;
  padding: 0 0 3px 0.5em;
}

input,
textarea {
  width: 98%;
  padding: 14px;
  margin-top: 6px;
  font-size: 1em;
  border: none;
  border-radius: 12px;
  box-sizing: border-box;
}

input[type="checkbox"] {
  vertical-align: middle;
  position: relative;
  top: -2px; /* 必要に応じて微調整 */
}

#orderForm {
  margin: 20px auto ;
}

.ln, .fn {
  /* width: 94% !important; */
width: 19.1em !important;
}

.n_f, .n_l {
    /* display: flex !important; */
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: nowrap;
    align-items: flex-start;
}

textarea {
  resize: vertical;
  height: 150px;
}

.error {
  color: #ff4444;
  font-size: 0.9em;
  margin-top: 4px;
}

.button-area {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  flex-direction: row;
}

.button-area button,
.button-area input {
  background: #352626;
  color: #fff;
  font-size: 1em;
  padding: 10px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 120px;
  width: auto;
}

.button-area button:hover,
.button-area input:hover {
  opacity: 0.6;
}


.lead {
  text-align: center;
  margin: 20px 0 40px;
}

.your_message {margin-top: 40px;}

    .privacy { 
      color: #ededed; 
      width: 100%;
      height: auto;
      padding: 30px 0 30px;
    }

    #totalPrice {
      font-weight: bold;
      color: #fff;
      text-align: right;
      margin: 10px 0 20px;
      padding-bottom: 2px;
      text-decoration: underline;
    }

.overseas-container > #totalPrice {
  text-decoration: none !important;
}
    #quantity {
      margin-top:10px;
      padding: 10px ;
      font-size: 1.1em;
      font-weight: 700;
    }
    .payment {
      margin: 30px 0;
      text-align: left;
    }

    .ws-payment-area p {
    color: #c7cfcf;
    font-size: 96%;
    text-align: center;
    }

    .required {
      margin-top: 40px;
      text-align: center;
    }
    .payment > input,
    .required > input {
      display: inline-block !important;
      width: 1.6em !important;
    }

    .zip_jp {
    width: 6em;
    display: block !important;
    text-align: center !important;
    
    }

button.submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #555;
}

button.submit-btn.active {
  opacity: 1;
  cursor: pointer;
  background-color: #352626; /* または有効時の色 */
}

.internal-link {
  color: inherit; /* 通常文字と同じ色 */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.internal-link:hover {
  color: #bdc4bb;
}


/* ======================
   Confirm
====================== */

.order_confirm {
      width: 100%;
      height: auto;
      box-sizing: border-box !important;
      padding: 20px 0 30px;
}

  .confirm-section, .confirm-section_dms, .confirm-section_ovs, .confirm-section_ws { 
  max-width: 700px;
  margin: 80px auto;
  padding: 30px;
}
/*
    .button-area { text-align: center; margin-top: 30px; }
    .button-area input { padding: 10px 30px; margin: 0 10px; }
*/

.order_confirm dt {
      display:block;
      width: 100%;
      height: auto;
      box-sizing: border-box !important;
      padding: 10px 15px 2px;
      margin: 5px 0;
      padding: 0 !important;
      font-weight: 700;
      color: #b6b0a1;
      font-size: 92%;

}
.order_confirm dd {
      display:block;
      width: 100%;
      height: auto;
      box-sizing: border-box !important;
      padding: 5px 15px;
      margin: 0 0 20px;
      paddingrgin-left: 0 !important;

}
.order_confirm > .bdb {
      border-bottom: 2px dotted #ccc;
      padding: 5px 15px 50px;
      margin-bottom: 20px;
}

/* ======================
   Order Thanks
====================== */

p.close a {color: #fff; text-decoration: none;}
p.close a:hover {text-decoration:underline;}
.thx_en {font-size: 0.9em; color: #605b4f; text-align: center; padding: 30px 0; border-top: 2px dotted #605b4f;}
.thx_ch {font-size: 0.9em; color: #605b4f; text-align: center; padding: 30px 0; margin: 0 0 20px; border-top: 2px dotted #605b4f;}


@media screen and (max-width: 768px) {
  .container, .domestic-container, .overseas-container, .confirm-section,
.confirm-section_dms, .confirm-section_ovs, .thanks-container, .ws-container,  .confirm-section_ws, .thanks-container_ws {
    width: 96%;
    box-sizing: border-box !important;
    padding: 20px;
    margin: 40px auto;
    border-radius: 0;
  }

 .container { background-color: rgba(255, 250, 235, 0.6); }
 .domestic-container { background-color: #293640; }
 .confirm-section_dms  { background-color: #293640; }
 .overseas-container { background-color: #62785b; }
 .confirm-section_ovs  { background-color: #62785b; }
 .thanks-container  { background-color: #b6b0a1; }
 .ws-container, .confirm-section_ws, .thanks-container_ws  { background-color: #771730; }

  .row {
    flex-direction: column;
    gap: 0;
  }

  h1 {
	font-size: 20px;
        line-height: 1.5;
        text-align: center;
  }

h1 > span {
display: inline-block;
font-size: 14px;
font-weight: normal;
}  

  .col {
    width: 100%;
    margin-bottom: 1em;
  }

  label, input, textarea, select {
    font-size: 0.96em;
    width: 98%;
    box-sizing: border-box !important;
  }

  .ln,
  .fn {
    width: 98%;
  }

  .fn {
    margin: 0;
  }

  .button-area {
    flex-direction: row;
    justify-content: center;
    padding-bottom: 30px;
  }

  .button-area button {
    width: 60%;
    padding: 12px;
  }

.button-area input  {
    display: flex:
    gap: 1%;
    width: 49%;
    padding: 12px;
}

  .lead {
  text-align: left !important;
  margin: 20px 0 40px;
  text-align: justify;
  overflow-wrap: break-word;
  word-break: break-all !important;
  }
      #totalPrice {
        text-align: right !important;
        font-size: 1em;
      }
      .payment label, .privacy label {
        display: block;
        text-align: left;
      }
    .required {
      margin-top: 40px;
      text-align: left;
      font-size: 0.83em;
    }

.thx_en {font-size: 0.9em; color: #605b4f; text-align: left; padding: 30px 0; border-top: 2px dotted #605b4f;}
.thx_ch {font-size: 0.9em; color: #605b4f; text-align: left; padding: 30px 0; margin: 0 0 20px; border-top: 2px dotted #605b4f;}

    .event-preview {
      flex-direction: column;
      align-items: center;
}
    }
    .preview-left,
    .preview-center {
      text-align: center;
    }
    .preview-right {
      align-items: center;
      text-align: center;
      width: 100%;
    }

}

/* ────────────────
   管理画面 共通スタイル
──────────────── */

/* ページ全体の基本構造 */
body {
  /* background: #771730; */
  color: #fff;
  font-family: sans-serif;
  margin: 0;
  padding: 2em 0;
}

/* フォームや管理枠全体に使うコンテナ */
.admin-container,
.form-container {
  max-width: 960px;
  margin: 0 auto 2em auto;
  padding: 1.5em;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* 管理画面（admin）専用の背景と文字色 */
.admin-container {
  background: #771730;
  color: #fff;
}

/* フォーム専用の背景と文字色 */
.form-container {
  background: #fff;
  color: #333;
}

/* ラベルと入力欄 */
.form-container label,
.admin-container label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
}

.form-container input[type="text"],
.form-container input[type="time"],
.form-container input[type="email"],
.form-container input[type="url"],
.form-container textarea {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.2em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* チェックボックスラベルの余白 */
.form-container input[type="checkbox"] {
  margin-right: 0.4em;
}

/* ボタンまわり */
.form-buttons {
  margin-top: 1.5em;
}

.form-buttons input,
.form-buttons a {
  padding: 0.5em 1.2em;
  margin-right: 1em;
  border: none;
  border-radius: 4px;
  text-decoration: none;
}

.submit-btn {
  background: #007acc;
  color: #fff;
}

.back-link {
  background: #ccc;
  color: #333;
}

/* イベントプレビュー */
.event-area {
  display: inline-block;
  background: #007acc;
  color: #fff;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  font-size: 0.85em;
  margin-right: 0.5em;
}

/* イベント一覧テーブル */
table.event-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

table.event-list th,
table.event-list td {
  padding: 0.6em;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

table.event-list th {
  background: #ab9399;
}

/* 操作リンク */
.action-links a {
  margin-right: 0.8em;
  color: #006699;
  text-decoration: none;
  font-weight: 700;
}

.action-links a:hover {
  text-decoration: underline;
}

/* 新規追加ボタン */
.add-button {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.6em 1.2em;
  background: #007acc;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.add-button:hover {
  background: #005fa3;
}

/* 状態別セル色 */
.row-ended {
  background-color: #9aa5ab !important;
}

.row-closed {
  background-color: #a7cfe2 !important;
}

.banner-preview {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  margin: 0.5em 0;
}

.banner-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-preview .no-image {
  background: #9aa5ab;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
  width: 100%;
  height: 100%;
}

.event-preview {
  background: #f4f4f4;
  color: #333;
  border-left: 8px solid #296085;
  padding: 1em;
  margin-bottom: 1.5em;
  border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
  width: 100%;
  box-sizing: border-box;
  }

  .preview-left {
    flex: 0 0 auto;
    text-align: center;
  }

  .banner-preview {
    width: 130px;
    height: 130px;
    overflow: hidden;
    border-radius: 6px;
    background: #9aa5ab;
  }

  .banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .banner-preview .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
    color: #fff;
    height: 100%;
  }

  .preview-center {
    flex: 1 1 auto;
    min-width: 200px;
  }

  .preview-right {
    flex: 0 0 auto;
    width: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* 修正：縦のセンター揃え */
    align-items: stretch;  /* ボタンが横並びになるように修正 */
    text-align: right;
  }

  .event-area {
    display: inline-block;
    background: #007acc;
    color: #fff;
    padding: 0.2em 0.6em;
    border-radius: 3px;
    font-size: 0.85em;
    margin-bottom: 0.4em;
    font-weight: bold;
  }

  .preview-right a {
    display: inline-block;
    text-decoration: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 1em;
    border-radius: 20px;
    background: #007acc;
    color: #fff;
    font-size: 0.9em;
    margin: 0.3em 0;
    text-align: center;
  }

.preview-right a:focus {
  outline: 2px solid #fff;
}

  .more-info-btn {
    background: #888;
  }

  .accordion-detail {
    background: #fff;
    color: #333;
    padding: 1em 1.2em;
    border-radius: 10px;
    margin-top: 1.2em;
    line-height: 1.7;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    display: none;
  }

  /* 各エリアカラー */
  .area-hokkaido { background-color: #4A90E2; }
  .area-tohoku   { background-color: #50E3C2; }
  .area-kanto    { background-color: #F5A623; }
  .area-chubu    { background-color: #B8E986; }
  .area-kinki    { background-color: #F8E71C; color: #333; }
  .area-chugoku  { background-color: #BD10E0; }
  .area-shikoku  { background-color: #7ED321; }
  .area-kyushu   { background-color: #D0021B; }
  .area-okinawa  { background-color: #F78FB3; }
  .area-abroad   { background-color: #9013FE; }
  .area-other    { background-color: #11430c; }

