/* 共通フォームスタイル */

body {
    background-color: #fff;
    color: #4A4E69;
    padding: 0;
    margin: 0;
}

.color-section{
    background-color: #e1e6f0;
    color: #4A4E69;
    margin: 0;
    padding: 20px;
    margin-top: -20px;
}

/* アクティブボタン（選択中のページ） */
.common-buttons a.active {
    background-color: #e1e6f0;
    border-bottom: none; /* 下辺をなくす */
    color: #4A4E69;
    margin-bottom: -3px; /* ボタンが浮かないように調整 */
}

.entry-content-title {
    font-size: 2.0em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #4A4E69;
    padding-bottom: 10px;
}

.contact-form {
    width: 60%;
    margin: 40px auto;
    padding: 60px;
    border: 3px solid #4A4E69;
    border-radius: 40px;
    background-color: #fff;
}

.contact-form h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-form label {
    font-size: 18px;
    display: block;
    margin-top: 15px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 2px solid #4A4E69;
    font-size: 16px;
    border-radius: 0;
}

.contact-form textarea {
    height: 150px;
}

.confirm-section p strong {
    color: #4A4E69;
}

.edit-button,.submit-button{
    border-radius: 40px;
}

.entry-confirm{
    border-radius: 40px; 
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background-color: #4A4E69;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border: none;
    margin-top: 20px;
}

.contact-form button:hover {
    background-color: #444;
    color: #fff;
}

/* プレースホルダー */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
    font-style: italic;
}

.confirm-button{
    border-radius: 40px;
}

/* モーダルスタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* モーダルは初期状態で非表示 */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal.active {
    display: flex; /* activeクラスが追加されたときに表示 */
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

/* ボタンスタイル */
.modal .button-group button {
    margin: 10px;
    padding: 10px 20px;
    border: 2px solid #4A4E69;
    background-color: #4A4E69;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal .button-group button:hover {
    background-color: #fff;
    color: #4A4E69;
}

/* モーダルスタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* モーダルは初期状態で非表示 */
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal.active {
    display: flex; /* activeクラスが追加されたときに表示 */
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

/* ボタンスタイル */
.modal .button-group button {
    margin: 10px;
    padding: 10px 20px;
    border: 2px solid #4A4E69;
    background-color: #4A4E69;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal .button-group button:hover {
    background-color: #fff;
    color: #4A4E69;
}

/* 確認画面と完了画面 */
.confirm-section,
.thanks-section {
    display: none; /* 初期状態で非表示 */
    margin: 40px auto;
    padding: 20px;
    border: 3px solid #4A4E69;
    background-color: #fff;
    width: 80%;
    max-width: 800px;
    text-align: center;
}

/* ボタンスタイル */
.button-center {
    margin-top: 20px;
}

.button-center button {
    margin: 10px;
    padding: 10px 20px;
    border: 2px solid #4A4E69;
    background-color: #4A4E69;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-center button:hover {
    background-color: #fff;
    color: #4A4E69;
}

/* 完了メッセージリンク */
.thanks-section a {
    text-decoration: none;
    color: #4A4E69;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #4A4E69;
    background-color: #fff;
    display: inline-block;
    margin-top: 20px;
}

.thanks-section a:hover {
    background-color: #4A4E69;
    color: #fff;
}

/* 確認画面と完了画面 */
.confirm-section,
.thanks-section {
    display: none; /* 初期状態で非表示 */
    margin: 40px auto;
    padding: 40px;
    border: 5px solid #4A4E69;
    background-color: #fff;
    width: 80%;
    max-width: 800px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

/* 確認画面と完了画面のタイトル */
.confirm-section h2,
.thanks-section h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    border-bottom: 3px solid #4A4E69;
    padding-bottom: 15px;
    display: inline-block;
    color: #4A4E69;
}

/* 確認画面のテキスト */
.confirm-section p,
.thanks-section p {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

/* 確認画面のデータ項目 */
.confirm-section p span {
    color: #555;
}

/* ボタンスタイル */
.button-center {
    margin-top: 30px;
}

.button-center button {
    margin: 15px;
    padding: 15px 40px;
    border: 3px solid #4A4E69;
    background-color: #4A4E69;
    color: #fff;
    font-weight: bold;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-center button:hover {
    background-color: #fff;
    color: #4A4E69;
}

/* 完了メッセージリンク */
.thanks-section a {
    text-decoration: none;
    color: #4A4E69;
    font-weight: bold;
    padding: 15px 40px;
    border: 3px solid #4A4E69;
    background-color: #fff;
    display: inline-block;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.thanks-section a:hover {
    background-color: #4A4E69;
    color: #fff;
}

/* プレースホルダー */
.confirm-section input::placeholder,
.confirm-section textarea::placeholder,
.thanks-section input::placeholder,
.thanks-section textarea::placeholder {
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
  .confirm-section,
  .thanks-section {
    width: 95%;
    padding: 15px;
    margin: 10px auto;
    box-sizing: border-box;
  }

  .confirm-section h2,
  .thanks-section h2 {
    font-size: 1.6em;
    margin-bottom: 15px;
    padding-bottom: 5px;
  }

  .confirm-section p,
  .thanks-section p {
    font-size: 0.95em;
    margin-bottom: 10px;
    word-break: break-word;
  }

  .button-center button {
    font-size: 1em;
    padding: 8px 15px;
    margin: 5px;
  }

  .thanks-section a {
    font-size: 0.9em;
    padding: 8px 15px;
    margin-top: 15px;
  }
  .contact-form {
    width: 80%;
    margin: 0 auto 50px;
    padding: 20px;
    background-color: white;
    /* border: 3px solid #4A4E69; ← 必要なら外してください */
  }

  .container{
    margin: 30px 0;
  }
}


