.contact-page {
  min-height: 100vh;
  padding: 46px 7% 70px;
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.98)),
    url("/png/miraiNihongo.jpg");
  background-size: cover;
  background-position: center;
  color: #0f274a;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 22px;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb b {
  color: #2563eb;
}

.contact-hero h1 {
  margin: 0 0 14px;
  font-size: 44px;
  color: #0f1b7a;
}

.contact-hero h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  background: #2563eb;
  border-radius: 999px;
  margin-top: 14px;
}

.contact-hero p {
  margin: 0 0 32px;
  color: #64748b;
  font-size: 17px;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 34px;
  align-items: start;
}

.contact-card,
.contact-side-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #334155;
  font-weight: 900;
}

.form-group label span {
  color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 15px;
  outline: none;
  background: white;
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.count-text {
  text-align: right;
  color: #64748b;
  font-weight: 700;
  margin-top: 6px;
}

.send-btn {
  width: 100%;
  border: none;
  border-radius: 9px;
  padding: 15px;
  background: linear-gradient(135deg, #2563eb, #0f1b7a);
  color: white;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.side-title {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}

.side-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.side-title h2 {
  margin: 0 0 8px;
  color: #0f1b7a;
  font-size: 22px;
}

.side-title p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  line-height: 1.6;
}

.side-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid #e5e7eb;
}

.side-row i {
  color: #2563eb;
  font-size: 28px;
  width: 34px;
  text-align: center;
}

.side-row h3 {
  margin: 0 0 8px;
  color: #0f274a;
}

.side-row p {
  margin: 0;
  color: #64748b;
  font-weight: 700;
}

.side-row a {
  display: inline-block;
  margin-top: 12px;
  color: #2563eb;
  font-weight: 900;
  text-decoration: none;
}

.privacy-note {
  margin-top: 26px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.privacy-note i {
  color: #64748b;
  margin-right: 8px;
}

.success-box {
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #ecfdf5;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}