/* 買取ガイドラインページ専用スタイル */

/* ページ全体 */
.kaitori-page {
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
  background: #f9f9f9;
}

.kaitori-page .page-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.kaitori-page .page-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e91e63;
}

/* セクション共通 */
.kaitori-page .kaitori-section {
  margin-bottom: 40px;
}

.kaitori-page .kaitori-section:last-child {
  margin-bottom: 0;
}

.kaitori-page .section-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-left: 15px;
  border-left: 4px solid #e91e63;
}

/* セクション1: ID発行フォーム */
.kaitori-page .kaitori-form {
  margin-top: 20px;
}

.kaitori-page .form-group {
  margin-bottom: 20px;
}

.kaitori-page .form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.kaitori-page .required {
  color: #e74c3c;
  margin-left: 4px;
}

.kaitori-page .form-group input[type="text"],
.kaitori-page .form-group input[type="email"],
.kaitori-page .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.kaitori-page .form-note {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.kaitori-page .form-actions {
  margin-top: 30px;
  text-align: center;
}

.kaitori-page .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 12px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
}

.kaitori-page .btn-primary:hover {
  opacity: 0.9;
}

.kaitori-page .btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.kaitori-page .form-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 4px;
}

.kaitori-page .form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.kaitori-page .form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* セクション2: 買取の流れ（横スクロールカード） */
.kaitori-page .flow-container {
  position: relative;
  margin-top: 20px;
}

.kaitori-page .flow-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.kaitori-page .flow-scroll::-webkit-scrollbar {
  height: 8px;
}

.kaitori-page .flow-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.kaitori-page .flow-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.kaitori-page .flow-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.kaitori-page .flow-card {
  flex: 0 0 280px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s;
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  gap: 0 12px;
}

.kaitori-page .flow-card:hover {
  border-color: #e91e63;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.15);
  transform: translateY(-4px);
}

.kaitori-page .flow-card-number {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.kaitori-page .flow-card h3 {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  align-self: center;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.kaitori-page .flow-card p {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin: 12px 0 0 0;
}

/* スクロールボタン */
.kaitori-page .flow-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 20px;
  z-index: 10;
  transition: all 0.3s;
}

.kaitori-page .flow-nav-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
}

.kaitori-page .flow-nav-btn.prev {
  left: -20px;
}

.kaitori-page .flow-nav-btn.next {
  right: -20px;
}

/* セクション3: 価格カード（画像背景オーバーレイ型） */
.kaitori-page .price-card {
  flex: 0 0 280px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  cursor: default;
}

.kaitori-page .price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.kaitori-page .price-card-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.kaitori-page .price-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  padding: 20px;
  z-index: 2;
}

.kaitori-page .price-card h3 {
  color: white;
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.kaitori-page .price-card .price {
  color: white;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 価格注意事項（吹き出し型） */
.kaitori-page .price-notes {
  margin-top: 30px;
  padding: 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kaitori-page .price-notes:after {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #e5e7eb;
}

.kaitori-page .price-notes:before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid white;
  z-index: 1;
}

.kaitori-page .price-notes p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin: 0;
}

/* セクション4: 撮影例カード（OK/NG） */
.kaitori-page .example-card {
  flex: 0 0 280px;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  cursor: default;
}

.kaitori-page .example-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.kaitori-page .example-card-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.kaitori-page .example-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.kaitori-page .example-card-badge.ok {
  background: #10B981;
  color: white;
}

.kaitori-page .example-card-badge.ng {
  background: #ef4444;
  color: white;
}

.kaitori-page .example-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  padding: 20px;
  z-index: 2;
}

.kaitori-page .example-card p {
  color: white;
  font-size: 15px;
  font-weight: normal;
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* セクション7: FAQ（アコーディオン） */
.kaitori-page .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.kaitori-page .faq-question {
  padding: 18px 50px 18px 20px;
  background: #f9fafb;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  border: none;
  width: 100%;
  text-align: left;
}

.kaitori-page .faq-question:hover {
  background: #f3f4f6;
}

.kaitori-page .faq-question:after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #667eea;
  font-weight: bold;
  transition: transform 0.3s;
}

.kaitori-page .faq-question.active:after {
  content: '−';
  transform: translateY(-50%) rotate(0deg);
}

.kaitori-page .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
}

.kaitori-page .faq-answer.active {
  max-height: 500px;
  padding: 20px;
}

.kaitori-page .faq-answer p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* セクション8: お問い合わせ */
.kaitori-page .contact-section-content {
  text-align: center;
  padding: 30px 20px;
  background: #f9fafb;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
}

.kaitori-page .contact-section-content p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
}

.kaitori-page .contact-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.kaitori-page .contact-btn {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 15px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s;
  display: inline-block;
}

.kaitori-page .contact-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.kaitori-page .contact-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.kaitori-page .contact-btn-secondary {
  background: #1DA1F2;
  color: white;
}

.kaitori-page .contact-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

/* ========================================
   reCAPTCHA設定
   ======================================== */

/* reCAPTCHA注意書き */
.recaptcha-notice {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 15px;
  line-height: 1.6;
}

.recaptcha-notice a {
  color: #667eea;
  text-decoration: none;
}

.recaptcha-notice a:hover {
  text-decoration: underline;
}

