@charset "utf-8";

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* =================================================== */
/* メイン構造 */
/* =================================================== */
.form-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* --- キャンペーン情報 --- */
.campaign-info {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.info-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: start;
}

.label {
  font-weight: bold;
}

.content {
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  .info-item {
    grid-template-columns: 1fr;
  }
  .label {
    margin-bottom: 0.3em;
  }
}

/* =================================================== */
/* CF7 フォーム部分（雛形スタイル） */
/* =================================================== */

.cf7-planet {
  max-width: 900px;
  margin: 0 auto;
}

/* --- 入力欄・ラベル --- */
.cf7-planet .form-row {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.cf7-planet .form-label {
  width: 240px;
  margin-right: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.cf7-planet .form-label.required::after {
  content: "必須";
  font-size: 0.8em;
  color: #fff;
  background-color: #d9534f;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}

/* --- 入力欄 --- */
.cf7-planet .wpcf7-form-control-wrap,
.cf7-planet .input-wrapper {
  flex: 1;
  min-width: 0;
}

.cf7-planet input[type="text"],
.cf7-planet input[type="email"],
.cf7-planet input[type="tel"],
.cf7-planet select,
.cf7-planet textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* --- チェックボックス・セレクト --- */
.cf7-planet input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 6px;
}

/* --- エラーメッセージ --- */
.cf7-planet .error-message {
  display: block;
  color: #d9534f;
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 0.5rem;
}
.cf7-planet .input-text.is-error {
  border-color: #d9534f !important;
  background-color: #fff8f8;
}

/* =================================================== */
/* 確認画面表示 */
/* =================================================== */
.form-input-area[aria-hidden="true"] { display: none; }
.confirmation-view { display: none; }
.confirmation-view[aria-hidden="false"] { display: block; }
.confirmation-view ul { list-style: none; padding: 0; margin: 0; }
.confirmation-view li { display: flex; padding: 1rem 0; border-bottom: 1px solid #eee; }
.confirmation-view .conf-label { width: 240px; margin-right: 20px; font-weight: bold; flex-shrink: 0; }
.confirmation-view .conf-value { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-all; }

/* =================================================== */
/* ボタン */
/* =================================================== */
.js-btn-wrap {
  display: contents;
  place-items: center;
  margin-top: 2rem;
}

.js-btn-wrap > * { grid-area: 1/1; }
.js-btn-wrap > [aria-hidden="true"] { visibility: hidden; }

.js-btn-wrap button,
.js-btn-wrap input[type="submit"] {
  display: block;
  margin: 1.5rem auto 0;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.js-confirm-btn { background-color: #007bff; }
.js-confirm-btn:disabled { background-color: #ccc; cursor: not-allowed; }

.js-secondstep {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.js-secondstep button,
.js-secondstep input[type="submit"] {
  margin-top: 0;
  flex: 1;
  max-width: 240px;
}

.js-return-btn { background-color: #6c757d; }
.cf7-planet input[type="submit"] { background-color: #28a745; }
.cf7-planet input[type="submit"]:hover { background-color: #218838; }

/* =================================================== */
/* SP表示（スマホ対応） */
/* =================================================== */
@media (max-width: 768px) {
  .cf7-planet .form-row,
  .confirmation-view li {
    flex-direction: column;
    align-items: stretch;
  }

  .cf7-planet .form-label,
  .confirmation-view .conf-label {
    width: 100%;
    margin: 0 0 0.5rem 0;
  }

  .js-secondstep {
    flex-direction: column;
  }

  .js-secondstep button,
  .js-secondstep input[type="submit"] {
    max-width: none;
    width: 100%;
  }
}

/* =================================================== */
/* モーダルウィンドウ */
/* =================================================== */
/*
button {
  padding: 10px 20px;
  cursor: pointer;
}
*/

/* --- モーダル関連 --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  background: #fff;
  padding: 20px 30px;
  border-radius: 6px;
  transform: translate(-50%, -50%);
  display: none;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1010;
  text-align: left;
  line-height: 1.7rem;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

.modal p {
  margin: 10px 0;
}

.modal h3 {
  margin: 10px 0 15px;
}

.modal h4 {
  margin: 15px 0;
}

.modal ul {
  margin-left: 20px;
}

#openModal {
  background: none;
  border: none;
  color: #0073aa;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 1em;
  text-align: left;
}

#openModal:hover {
  color: #005177;
  text-decoration: none;
}