/* === リセット・基本スタイル === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #2e2e2e;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

/* === メインコンテンツエリア === */
.main-content {
  flex: 1;
}

/* === フッターを最下部に固定 === */
.footer {
  margin-top: auto;
}

/* === ボタンの下線を削除 === */
a[class*="btn-"] {
  text-decoration: none !important;
}

/* --- お問い合わせページ専用 --- */
body.contact-page {
  padding-top: 0 !important;
}
.contact-section {
  max-width: 520px;
  margin: 20px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(36, 70, 170, 0.08);
  padding: 48px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.back-to-top-btn {
  position: absolute;
  top: 20px;
  left: 24px;
  min-width: 120px;
  height: 36px;
  font-size: 15px;
  padding: 0 20px;
  line-height: 36px;
  z-index: 2;
  box-shadow: none;
}
.contact-logo {
  text-align: center;
}
.contact-logo img {
  width: 120px;
  height: auto;
  object-fit: contain;
}
.contact-section h1 {
  font-size: 32px;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 8px;
  text-align: center;
}
.contact-form label {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
  color: #2e2e2e;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 4px;
  background: #f8fafc;
  box-sizing: border-box;
}
.contact-form select {
  appearance: none;
  background: #f8fafc url('data:image/svg+xml;utf8,<svg fill="%232563eb" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center/20px 20px;
}
.contact-form .checkbox-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0 0;
}
.contact-form .checkbox-area label {
  font-weight: 400;
  margin: 0;
  color: #2e2e2e;
  font-size: 15px;
}
.contact-form .error-message {
  color: #e53935;
  font-size: 13px;
  margin-bottom: 8px;
  min-height: 18px;
}
/* 送信ボタンスタイルはcommon/css/button.cssに移動 */
.contact-complete {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin: 40px 0 0 0;
}
.required-label {
  color: #e53935;
  font-size: 13px;
  font-weight: 400;
  margin-left: 2px;
}

.contact-back-section {
  width: 100%;
  max-width: 600px;
  margin: 40px auto 0 auto;
  position: relative;
  text-align: left;
}
.contact-back-section .back-to-top-btn {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
  height: 36px;
  font-size: 15px;
  padding: 0 20px;
  line-height: 36px;
  box-shadow: none;
  margin-bottom: 0;
  border: none;
  color: #2563eb;
  &:hover {
    background: none;
    opacity: 0.8;
    color: #10b981;
  }
}
.contact-back-section .back-to-top-btn::before {
  content: "←";
  font-size: 16px;
  font-weight: bold;
}
@media (max-width: 600px) {
  .contact-section {
    padding: 32px 12px 24px 12px;
    
  }
  .contact-logo {
    margin-bottom: 16px;
  }
  .contact-logo img {
    width: 160px;
  }
  .back-to-top-btn {
    top: 12px;
    left: 8px;
    min-width: 90px;
    font-size: 13px;
    padding: 0 10px;
    height: 32px;
    line-height: 32px;
  }
} 