:root {
  --bg:#ffffff;
  --card:#f9f9fc;
  --radius:12px;
  --shadow:0 16px 40px rgba(34,58,112,0.07);
  --accent:#223a70;
  --text:#1f2d4a;
  --muted:#6f7a95;
  font-family: "Segoe UI", YuGothic, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

.title img,
.title2 img {
  display: block;
  max-width: 100%; /* 親要素の幅に収まるようにする */
  height: auto;    /* アスペクト比を保つ */
}
.title img,
.title2 img {
  max-width: 100%; /* 画面幅を超えない */
  height: auto;    /* アスペクト比を保つ */
  display: block;  /* 不要な余白を防ぐ */
}

/* スマホサイズで追加調整（例: 幅768px以下） */
@media screen and (max-width: 768px) {
  .title img {
    width: 80%;   /* 画面幅の80%に縮小 */
    margin: 0 auto;
  }
  .title2 img {
    width: 100%;   /* 画面幅の60%に縮小 */
    margin: 10px auto 0;
  }
}


body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  padding: 2rem 1rem;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem;
}

/* --------------------
   カード
-------------------- */
.card {
  background: var(--card);
  background-color: #ebf3ff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

h1 {
  margin-top: 0;
  font-size: 1.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}

.subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* --------------------
   プログレスバー
-------------------- */
.progress {
  display: flex;
  gap: 6px;
  margin: 1rem 0 1rem;
}

.progress .step {
  flex: 1;
  height: 8px;
  background: #e3e8f1;
  border-radius: 4px;
}

.progress .step.active,
.progress .step.completed {
  background: var(--accent);
}

.step-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.55rem;
  margin-bottom: 10px;
  color: #555;
  gap: 4px;
}

/* --------------------
   フォームフィールド
-------------------- */
.field {
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

.required {
  color: #d33;
  margin-left: 3px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d9dce3;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: #fff;
  color: inherit;
  transition: border .2s, box-shadow .2s;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,58,112,0.15);
}

.error {
  color: #b32;
  font-size: 0.85rem;
  margin-top: 6px;
}

.small {
  font-size: 0.75rem;
  color: var(--muted);
}

/* --------------------
   ボタン
-------------------- */
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: filter .2s;
}
.btn {
  display: inline-block;
  padding: 0.8em 3em;
  background-color: #e3364a; /* 背景色 */
  box-shadow: 0 5px 0 #ca1c30; /* 影の太さ・色 */
  border-radius: 60px;
  color: #fff;
  cursor: pointer;
  text-decoration: none; /* 文字の下線を消す */
}

.btn:hover { filter: brightness(1.08); }

.btn-secondary {
  background: none;
  border: 1px solid #ccc;
  color: #444;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 8px;
}

/* --------------------
   ステップ切替
-------------------- */
.step-wrapper { display: none; }
.step-wrapper.active { display: block; }

/* --------------------
   オプションボタン
-------------------- */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.btn-option {
  padding: 12px;
  border: 1px solid #d9dce3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 0 #003884;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  transition: all .15s;
  position: relative;
  user-select: none;
}

.btn-option:hover {
  box-shadow: none;
  transform: translateY(5px);
}

.btn-option.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(34,58,112,0.2);
}

/* --------------------
   ヘッダー（バッジ＋画像）
-------------------- */
.header-section {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.badge {
  display: flex;
  align-items: center;
  background-color: #f47c7c;
  color: #fff;
  border-radius: 6px;
  padding: 10px;
  font-size: 0.9rem;
}

.badge .icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.badge .text {
  line-height: 1.2;
  font-size: 13px;
}

.image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image img {
  width: 100%;
  border-radius: 6px;
}

/* --------------------
   メディアクエリ
-------------------- */
@media (max-width: 768px) {
  .header-section {
    flex-direction: row; /* 横並び */
  }
  .badges {
    flex: 1;
  }
  .header-section .image {
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .header-section {
    flex-direction: row; /* 横並び */
    align-items: center;
  }
  .badges { flex: 1; }
  .image {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .image img {
    max-width: 100%;
    height: auto;
  }
}