/* ====== 基本リセットと共通コンテナ ====== */
body {
  margin: 0;
  padding: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: #f7f9fc;
  color: #333;
}

.container {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin: 40px auto;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  text-align: center;
}

/* ====== 見出し ====== */
h1, h2 {
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}
h1 { font-size: 24px; }
h2 { font-size: 22px; }

/* ====== メッセージ系 ====== */
.success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  margin-bottom: 20px;
}

.error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* ====== フォーム要素 ====== */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
  text-align: left;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

form input[type="date"] {
  text-align: left;      /* 左寄せ */
  direction: ltr;        /* 左→右方向に */
  -webkit-appearance: none; /* iOS Safariで余計な装飾を消す */
  appearance: none;
  text-indent: 0;        /* Safari対策：強制左寄せ */
}

input:focus,
textarea:focus {
  border-color: #96D296; /* 柔らかい緑で統一 */
  outline: none;
}

/* ====== ボタン ====== */
button, .btn, a.button {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

button:hover,
.btn:hover,
a.button:hover {
  background-color: #96D296; /* 柔らかく薄い緑 */
}

/* ====== 案内テキスト ====== */
.guide {
  display: block;
  width: 92%;
  text-align: left;
  background-color: #f0f8f0;
  border: 1px solid #c3e6cb;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.guide h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #4CAF50;
}

.guide ul,
.guide ol {
  margin: 0;          /* スマホでは左右の余白を消す */
  padding-left: 20px; /* リストマークだけ残す */
  box-sizing: border-box;
}

.guide li {
  word-wrap: break-word;   /* 長い文章がはみ出さないように折り返す */
  overflow-wrap: anywhere; /* 強制的に折り返す（新しめブラウザ用） */
}

/* ====== 補足テキスト ====== */
.note {
  margin-top: 15px;
  font-size: 13px;
  color: #004080;           /* 濃いめの水色 */
  background-color: #e0f0ff; /* 薄い水色背景で目立たせる */
  padding: 8px 12px;
  border-left: 4px solid #3399ff; /* 左側にアクセントのライン */
  border-radius: 4px;
  text-align: left;
    font-weight: bold;
}

.note-inline {
  margin-left: 4px;
  font-size: 0.95em;   /* ほんの少しだけ小さく */
  color: #666;         /* 本文より少し薄いグレー */
  font-style: normal;  /* 斜体なしで自然に */
}

input[type="date"], select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input[type="date"]:focus, select:focus {
  border-color: #96D296;
  outline: none;
}
.table-wrapper {
  overflow-x: auto;
  width: 100%;
}

input::placeholder {
  color: #bbb; /* 薄いグレー。#888よりさらに薄く */
}
textarea::placeholder {
  color: #bbb; /* 薄いグレー。#888よりさらに薄く */
}
.footer {
  text-align: center;
  font-size: 0.8em; /* 小さめの文字 */
  color: #777;      /* 薄いグレー */
  margin: 30px 0 10px 0;
}

    .alert {
      padding: 18px;
      border-radius: 8px;
      margin: 20px 0;
      font-size: 1.1em;
      line-height: 1.6;
    }
    /* 仮申し込み中（グリーン系でやわらかく） */
.alert-pending {
  background-color: #f0faf4; /* 薄いグリーン */
  border: 2px solid #a3d9a5;
  color: #2e7d32; /* 落ち着いた緑 */
  text-align: left !important; /* ← コメントはつけずに確実に */
  padding: 18px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 1.1em;
  line-height: 1.6;
}
    /* エラーは赤系だが控えめに */
    .alert-error {
      background-color: #fcebea;
      border: 2px solid #f5c6cb;
      color: #842029;
    }
    .highlight {
      font-weight: bold;
      color: #2e7d32; /* 強調もグリーンに統一 */
    }
    .button {
      display: inline-block;
      padding: 12px 24px;
      background: #28a745; /* 緑ボタン */
      color: #fff;
      text-decoration: none;
      border-radius: 6px;
      font-size: 1rem;
    }
    .button:hover {
      background: #218838;
    }

.left-align {
    text-align: left;
}

.btn-date {
  display: inline-block;
  padding: 1px 6px;          /* 行の高さをほぼ広げない */
  border-radius: 4px;        /* 角を少し丸く */
  background: #28c76f;       /* 明るめの緑 */
  color: #fff !important;    /* 白文字 */
  font-size: 12px;           /* やや小さめ文字 */
  font-weight: 600;
  text-decoration: none;     /* 下線消し */
  cursor: pointer;
  line-height: 1.2;          /* 高さを抑える */
  transition: background 0.2s ease;
}
.btn-date:hover {
  background: #20a95d;       /* ホバー時に濃く */
}

ol li {
  margin-left: -15px;   /* 番号とテキストの距離を縮める */
}

.ssl-notice {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;

  padding: 12px 16px;
  border: 1px solid #4CAF50;     /* 緑色の枠 */
  border-radius: 6px;            /* 角丸 */
  background-color: #f6fff6;     /* 薄い緑の背景 */
  color: #333;                   /* 本文色 */
  font-size: 14px;
  line-height: 1.6;
    text-align: left;
}

.ssl-notice .icon {
  font-size: 22px;
  color: #4CAF50;                /* 緑色アイコン */
  flex-shrink: 0;                /* アイコン幅固定 */
}

.ssl-notice .text {
  text-align: left;
}

.consent-notice {
  border: 1px solid #4CAF50;
  background-color: #f6fff6;
  border-radius: 6px;
  padding: 16px;
  margin: 16px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  text-align: left !important;  /* ← ここを追加 */
}


.consent-notice h3 {
  margin-top: 0;
  font-size: 16px;
  color: #4CAF50;                /* 緑の見出し */
}

.consent-notice ul {
  margin: 8px 0 0 20px;
  padding: 0;
}

.consent-notice li {
  margin-bottom: 6px;
}


/* ====== レスポンシブ ====== */
@media (max-width: 480px) {
  .container {
    padding: 20px;
    margin: 20px auto;
  }
  h1 { font-size: 20px; }
  h2 { font-size: 18px; }
  input, textarea, button {
    font-size: 14px;
    padding: 10px;
  }
 .note {
    font-size: 12px;         /* 小さめ文字でスマホでも読みやすく */
    padding: 6px 10px;       /* スマホ画面に合わせて余白を縮小 */
  }
    
.guide {
    padding: 15px;
    margin: 0 auto;
    margin-bottom: 15px;
    width: 100%;
    box-sizing: border-box; /* ←これが必須 */
    font-size: 14px;
}
  }
  .guide ul,
  .guide ol {
    padding-left: 10px;  /* スマホではさらにコンパクトに */
       padding-top: 5px;
  }
  ol li {
    margin-left: 0;   /* 番号が左にはみ出さないように修正 */
      padding-top: 5px;
  }
}
