*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Serif JP', serif;
}

/* フォーム共通スタイル */
.support-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Noto Serif JP', serif;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-label small {
  font-weight: normal;
}

span.required,
span.optional {
  font-size: 75%;
  margin-left: .75em;
}

span.required {
  font-weight: bold;
  color: #e74c3c;
}

span.optional {
  color: #7f8c8d;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3498db;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-file {
  width: 100%;
  padding: 8px;
  border: 2px dashed #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.form-file:hover {
  border-color: #3498db;
}

.form-description {
  background-color: #f0f6f9;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-description > * {
  margin: 0;
}

.form-description > * + * {
  margin-top: 15px;
}

.beta-notice {
  background-color: #fff3cd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

.beta-notice > *{
  margin: 0;
}

/* エラーメッセージ */
.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

/* 注意文 */
.attention-message {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 12px;
  margin: 10px 0;
  font-size: 14px;
  color: #856404;
  display: none;
}

.attention-message.show {
  display: block;
}

/* 条件付きフィールド */
.conditional-fields {
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 4px;
  border-left: 4px solid #3498db;
  display: none;
}

.conditional-fields.show {
  display: block;
}

/* ラジオボタン・チェックボックス */
.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-radio {
  display: flex;
  align-items: center;
}

.form-radio input[type="radio"] {
  margin-right: 8px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
  margin-right: 8px;
  margin-top: 4px;
}

/* ボタン */
.form-button {
  background-color: #3498db;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px;
}

.form-button:hover {
  background-color: #2980b9;
}

.form-button.secondary {
  background-color: #95a5a6;
}

.form-button.secondary:hover {
  background-color: #7f8c8d;
}

/* 確認画面スタイル */
.confirm-section {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.confirm-section > * + *  {
  margin-top: 15px;
}

.confirm-item {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.confirm-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.confirm-label {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

.confirm-value {
  padding: 0;
  /*
  word-wrap: break-word;
  white-space: pre-wrap;
  */
}

/* 完了・エラー画面 */
.result-container {
  text-align: center;
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.result-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.result-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #666;
}

.result-link {
  display: inline-block;
  padding: 12px 24px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.result-link:hover {
  background-color: #2980b9;
}

/* reCAPTCHA コンテナ */
.recaptcha-container {
  margin-bottom: 30px;
}

/* 言語切り替えスタイル */
.language-switcher {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.language-link {
  /*background-color: #FFFF77;*/
  /*border-radius: 20px;*/
  border-bottom: transparent 2px solid;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}

.language-link.active {
  /*
  background-color: #F255AB;
  color: #ffffff;
  */
  border-bottom-color: #000;
}

.language-link:hover {
  /*
  background-color: #F255AB;
  color: #ffffff;
  */
  opacity: 0.7;
}

/* ロゴスタイル */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
}

.logo-container img {
  max-width: 100%;
  height: auto;
}

.logo-container img.anchor {
  max-width: 250px;
}
.logo-container img.muv-luv {
  max-width: 180px;
}

/* フッタースタイル */
.footer > * + * {
  margin-top: 4px;
}
.footer-links {
  font-size: 14px;
}
.footer-links a {
  color: #000;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: none;
}

.footer-copyright {
  font-size: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .support-form {
    padding: 15px;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* iOS Safariでのズーム防止 */
  }
  
  .form-button {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
  }
  
  .result-container {
    padding: 30px 15px;
  }
  
  .result-title {
    font-size: 20px;
  }
  
  .language-switcher {
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
  }
  
  .language-link {
    min-width: 70px;
    font-size: 12px;
    padding: 6px 12px;
    height: 28px;
  }
}

