#contact table{
}

@charset "UTF-8";
/* ==========================================================================
   フォーム外
   ========================================================================== */
.announce{
  margin-bottom: 30px;
}
.announce h3{
  margin-bottom: 10px;
  font-size: 120%;
  font-weight: 700;
  color: #008741;;
}
.announce h3 a{
  color: #008741;;
}

.announce p{
  margin-bottom: 10px;
}
.announce ul {
    margin-bottom: 20px;
}
.announce ul li{
  list-style-type:disc;
  margin-left: 1.5em;
}


.contact-info {
  background-color: #f9f9f9;
  border-radius: 5px;
  padding: 24px;
  font-family: sans-serif;
  color: #333;
  margin-bottom: 20px;
}

.contact-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #008741;
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid #008741;
  padding-bottom: 8px;
}

.contact-info .cont {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 項目間の隙間 */
}

.contact-info dl {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0;
  flex: 1 1 280px; /* 画面幅に応じて柔軟にサイズ調整 */
  box-sizing: border-box;
}

.contact-info dt {
  font-weight: bold;
  color: #555;
  width: 70px; /* ラベルの幅を固定 */
  flex-shrink: 0;
  border-right: 1px solid #eee;
  margin-right: 16px;
  padding-right: 16px;
}

.contact-info dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info strong {
  font-size: 1.2rem;
  font-weight: 700;
  color: #008741;
  margin-right: 6px;
}


.notes{
  background-color: #f5f5f5;
  padding: 20px 30px;
  margin: 30px 0;
}
.notes dt{
  font-size: 120%;
  font-weight: 700;
}

/* ==========================================================================
   フォーム全体のレイアウト
   ========================================================================== */
#myForm {
    width: 100%;
    max-width: 100%; /* フォームの最大幅（デザインに合わせて調整してください） */
    margin: 0 auto;
    box-sizing: border-box;
}

/* 縦並びや横並びを整えるテーブルスタイル */
table.form {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

table.form tr {
    border-bottom: 1px solid #e0e0e0;
}

table.form th {
    width: 30%;
    padding: 20px 15px;
    text-align: left;
    vertical-align: top;
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333;
}

table.form td {
    width: 70%;
    padding: 15px;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 必須・注釈マーク */
span.note {
    color: #e63654;
    margin-left: 5px;
    font-weight: bold;
}

span.small {
    display: block;
    font-size: 90%;
    color: #666;
    font-weight: normal;
    line-height: 1.5;
    margin-top: 5px;
}

/* ==========================================================================
   入力コントロール（Input, Select, Textarea）
   ========================================================================== */
#myForm input[type="text"],
#myForm input[type="tel"],
#myForm input[type="email"],
#myForm input[type="date"],
#myForm input[type="time"],
#myForm select,
#myForm textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* フォーカス時のエフェクト */
#myForm input:focus,
#myForm select:focus,
#myForm textarea:focus {
    border-color: #008741; 
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* 個別のサイズ微調整 */
#myForm input[type="date"],
#myForm input[type="time"] {
    width: auto;
    display: inline-block;
}

#myForm select {
    cursor: pointer;
    max-width: 300px;
}

#myForm textarea {
    height: 150px;
    resize: vertical; /* 縦方向のみリサイズ可能に */
}

/* ラジオボタンとチェックボックス */
#myForm label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    cursor: pointer;
}

#myForm label input[type="radio"],
#myForm label input[type="checkbox"] {
    margin-right: 6px;
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   プライバシーポリシー
   ========================================================================== */
.policy_box{
     margin: 30px 0;
     text-align: center;
}
.policy_box label{
 display: inline-flex;
 align-items: center;
 justify-content: center;
}
.policy_box .text{
    text-align: center;
}



/* ==========================================================================
   ボタンエリア
   ========================================================================== */
.center {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 100px; /* ボタン同士の間隔 */
    flex-wrap: wrap;
}
.reset {
    text-align: right;
}

/* 共通ボタンスタイル */
#myForm .submit,
#myForm .reset_btn {
    text-align: center;
    display: inline-block;
    padding: 15px 40px;
    font-weight: bold;
    border: none;
    border-radius: 50px; /* 丸みのあるボタン */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
}

/* 確認画面へ進むボタン（主ボタン） */
#myForm .submit {
    background-color: #008741; 
    color: #fff;
}

#myForm .submit:hover {
    background-color: #008741;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 135, 65, 0.3);
}

/* 入力をクリアするボタン（副ボタン） */
#myForm .reset_btn {
    background-color: #e0e0e0;
    color: #666;
}

#myForm .reset_btn:hover {
    background-color: #d0d0d0;
    color: #333;
    transform: translateY(-2px);
}

/* ==========================================================================
   エラーメッセージ
   ========================================================================== */
.error_msg {
    color: #e63654;
    margin-top: 5px;
    font-weight: bold;
    display: block;
}

/* ==========================================================================
   Thanksページ
   ========================================================================== */

.btn-main {
    display: inline-block;
    padding: 7px 35px;
    background-color: #008943;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   レスポンシブ対応（スマホ表示）
   ========================================================================== */
@media screen and (max-width: 640px) {
    table.form tr {
        display: block;
    }
    
    table.form th, 
    table.form td {
        display: block;
        width: 100%;
    }
    
    table.form th {
        padding: 15px 10px 5px 10px;
        background-color: transparent; /* スマホ時は背景を白にスッキリと */
    }
    
    table.form td {
        padding: 5px 10px 15px 10px;
    }
    
    .center {
        flex-direction: column; /* スマホ時はボタンを縦並びに */
        align-items: center;
        gap: 15px;
    }
    
    #myForm .submit,
    #myForm .reset_btn {
        width: 100%;
        max-width: 300px;
    }
}