@charset "UTF-8";

/* お問い合わせフォーム用スタイル */

/* 共通のコンテナスタイル */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* パンくずリスト */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 0.5rem;
  color: #999;
}

.breadcrumb a {
  color: #1a73e8;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* メインコンテンツ */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 見出し */
h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.3;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.8rem;
}

h2 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem;
  color: #333;
}

/* index.php用のフォームスタイル */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

/* 説明テキストとの間隔を広げる */
.contact-form p {
  margin-bottom: 20px; /* 現状より大きなマージンを設定 */
}

.control {
  margin-bottom: 20px;
}

/* フォームラベルとフィールドのスタイル改善 */
.control label {
  display: block;
  margin-bottom: 8px;
  font-weight: normal;
  color: #333; /* 薄い#555から濃い#333に変更 */
}

/* 必須マークのデザイン変更 - 丸みのある四角 */
.required {
  background-color: #f0f0f0;
  color: #666;
  font-size: 0.75em;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

/* 入力フィールドのスタイル改善 */
.control input[type="text"],
.control input[type="email"],
.control textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  font-family: "Helvetica Neue","Helvetica","YuGothic Medium","游ゴシック","YuGothic",
    "ヒラギノ角ゴ Pro","Hiragino Kaku Gothic Pro","メイリオ","Meiryo",sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: #fafafa;
}

.control input[type="text"]:focus,
.control input[type="email"]:focus,
.control textarea:focus {
  outline: none;
  border-color: #1a73e8;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.control textarea {
  min-height: 200px;
}

.form-submit {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
}

.form-submit:hover {
  background-color: #0d62c9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.error-box {
  background-color: #ffebee;
  border-left: 5px solid #ff4b4b;
  padding: 10px 15px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}

.error-box ul {
  margin: 0;
  padding-left: 20px;
}

/* チェックボックスコンテナの改善 */
.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
  cursor: pointer;
}

/* プライバシーポリシーのスタイル改善 */
.privacy-policy {
  margin-top: 30px;
  padding: 20px;
  background-color: #f8f8f8;
  border-radius: 8px;
  border-left: 3px solid #ddd;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.privacy-policy h2 {
  font-size: 1.2rem;
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.privacy-policy p {
  margin-bottom: 10px;
}

.privacy-policy ul {
  margin: 0 0 0 20px;
  padding: 0;
}

.privacy-policy li {
  margin-bottom: 8px;
}

/* confirm.php用のテーブルとボタンスタイル */
.confirmation-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px; /* 上部マージンを追加 */
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.confirmation-table th, 
.confirmation-table td {
  padding: 16px;
  line-height: 1.6;
}

.confirmation-table th {
  background-color: #fafafa;
  width: 30%;
  text-align: left;
  font-weight: normal;
  color: #555;
  border-bottom: 1px solid #eee;
}

.confirmation-table td {
  width: 70%;
  background-color: #fff;
  border-bottom: 1px solid #eee;
  font-family: "Helvetica Neue","Helvetica","YuGothic Medium","游ゴシック","YuGothic",
    "ヒラギノ角ゴ Pro","Hiragino Kaku Gothic Pro","メイリオ","Meiryo",sans-serif;
}

.confirmation-table tr:last-child th,
.confirmation-table tr:last-child td {
  border-bottom: none;
}

/* ボタンスタイルの統一 */
.form-buttons {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.submit-button {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-button:hover {
  background-color: #0d62c9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.back-button {
  display: inline-block;
  background-color: #f5f5f5;
  color: #333;
  border: none;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s;
  text-align: center;
}

.back-button:hover {
  background-color: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* thanks.php用のスタイル - 緑色を削除 */
.thanks-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
  text-align: center;
}

.thanks-message {
  background-color: #f8f8f8;
  border-left: 3px solid #ddd;
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
  border-radius: 0 4px 4px 0;
  color: #333;
}

.thanks-message h2 {
  color: #333;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.thanks-message p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.home-button {
  display: inline-block;
  background-color: #1a73e8;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 16px;
  transition: all 0.3s;
  margin-top: 20px;
  font-weight: bold;
}

.home-button:hover {
  background-color: #0d62c9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contact-form {
    padding: 0 1rem;
  }
  
  .confirmation-table th, 
  .confirmation-table td {
    padding: 10px;
  }
  
  .form-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .submit-button, 
  .back-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  .confirmation-table th {
    width: 40%;
  }
  
  .confirmation-table td {
    width: 60%;
  }
  
  .thanks-message {
    padding: 15px;
  }
}