:root {
    --color: #00a29a;
}

.__Color {
    color: var(--color)
}


/*=============================================================================
*
*
*
=============================================================================*/
#fv {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
}

@media (max-width: 768px) {
    #fv {
        padding-top: 3.5rem;
        padding-bottom: 1.5rem;
    }
}

.hd_logo {
    width: 22rem;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.hd_text1 {
    line-height: 1.5;
    color: #000;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.hd_text1 p {
    font-size: 3.2rem;
}

#form_sec {
    flex: 1 0 auto;                     /* ここが伸びて下の余白を吸収 */
    display: grid;
    place-content: center;              /* 縦横センター */
    padding-top: 3.5rem;
    padding-bottom: 5.5rem;
    min-height: 50svh;
    position: relative;
}

@media (max-width: 768px) {
    #form_sec {
        display: block;
        padding-top: 0;
        padding-bottom: 5.5rem;
    }
}

.form-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.form-table tbody tr td {
  /* ラベル（左）＋入力（右）の2カラムにする */
  display: grid;
  grid-template-columns: 160px 1fr; /* ラベル幅はお好みで */
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}
.form-table tbody tr:first-child td {
  border-top: none;
}

/* ラベル */
.form-table td > p {
  margin: 0;
  font-size: 1.6rem;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
}

/* 「必須」バッジ（<p><span>必須</span>…） */
.form-table td > p > span {
  display: inline-block;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: #e64a3d; 
  border-radius: 4px;
}

/* ===== 入力エリア ===== */
.form-table td > div {
  /* 1行目の姓・名を横並びに */
  display: flex;
  gap: 12px;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #f3f3f3;     /* スクショの薄グレー */
  color: #111;
  outline: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea {
  font-size: 1.6rem;   /* 例：16px相当（htmlが62.5%なら） */
  line-height: 1.6;    /* 縦の余裕。height固定ならこのままでOK */
}

.form-table input::placeholder {
  color: #9aa0a6;
  font-size: 1.6rem;
}

.form-table input:focus {
  background: #fff;
  border-color: #0fa1a0;   /* アクセントのティール */
  box-shadow: 0 0 0 3px rgba(15,161,160,.12);
}

/* 姓・名の2分割（最初の行だけ左右半分ずつに） */
.form-table tr:nth-child(2) td > div > input,
.form-table tr:nth-child(3) td > div > input {
  flex: 1 1 0;
  min-width: 0;
}

/* スマホ対応 */
@media (max-width: 768px) {
  /* 行は1カラムに */
  .form-table tbody tr td{
    grid-template-columns: 1fr; 
    gap: 10px;
  }

  /* 右カラム（入力グループ）を縦積みに固定 */
  .form-table td > div{
    display: flex;
    gap: 10px;
  }

  /* 姓・名の各inputが100%で潰れないように */
    .form-table td > div > input[type="text"],
    .form-table td > div > input[type="email"],
    .form-table td > div > input[type="tel"]{
        width: 100%;
        flex: 0 0 auto;   /* 横並び時のflex:1を無効化 */
        min-width: 0;     /* iOS/Safariのはみ出し防止 */
        box-sizing: border-box;
    }
}

/* ===== 参考：チェックボックス行と送信ボタン（任意） ===== */
/* チェックボックス行をページ側で包む場合の例
<div class="consent-row"><label><input type="checkbox"> <a href="#">個人情報取扱事項</a>に同意する</label><span class="req">必須</span></div>
*/
.consent-row {
  margin: 16px 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.consent-row a { color: #0fa1a0; text-decoration: underline; }
.consent-row .req {
  display: inline-block;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  background: #e74c3c;
  border-radius: 4px;
}

/* ====== 確認ボタンのラッパー ====== */
#OF_form1 > div:last-of-type {
  margin-top: 40px;              /* 上に余白 */
  text-align: center;            /* フォールバック用中央寄せ */
}

#OF_form1 > div:last-of-type > div {
  display: flex;
  justify-content: center;       /* ボタンを中央配置 */
}

/* ====== ボタン本体 ====== */
#OF_form1 button[type="submit"] {
  display: inline-block;
  min-width: 280px;              /* 幅はお好みで */
  height: 56px;
  padding: 0 24px;
  background: #009688;           /* ティールグリーン系（例） */
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 28px;           /* 丸みを強調 */
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 150, 136, 0.25);
}

/* ホバー時の浮き上がり */
#OF_form1 button[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 150, 136, 0.3);
}

/* クリック時の沈み込み */
#OF_form1 button[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0, 150, 136, 0.2);
}

@media (max-width: 768px) {
    #OF_form1 > div:last-of-type {
        margin-top: 1.5rem;
        text-align: center;
    }
    #OF_form1 button[type="submit"] {
        width: 100%;
        max-width: 340px;
    }
}

.privacy {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
}

.privacy a {
    color: #0fa1a0;
    text-decoration: underline;
}


/*=============================================================================
*
*
*
=============================================================================*/
.footer_logo {
    width: 18rem;
    margin: 0 auto 3rem;
}