
.contact-hero{
  position:relative;
  min-height:390px;
  display:grid;
  place-items:center;
  overflow:hidden;
  padding:80px 24px;
  text-align:center;
  background:#eef8ff;
}
.contact-hero-inner{position:relative;z-index:2;max-width:760px}
.contact-hero h1{
  margin:0;
  font-family:"Zen Maru Gothic",sans-serif;
  font-size:clamp(2.6rem,6vw,5rem);
  line-height:1.2;
}
.contact-hero p:last-child{margin:22px 0 0;font-size:1rem}
.contact-dot{position:absolute;border:2px solid #222;border-radius:50%}
.cd1{width:120px;height:120px;background:#ffb0b0;left:8%;top:18%}
.cd2{width:86px;height:86px;background:#ffff9a;right:12%;top:20%}
.cd3{width:150px;height:150px;background:#a9ffd2;right:-18px;bottom:-28px}

.contact-section{padding:90px 24px 110px;background:#fffdf8}
.contact-wrap{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr);
  gap:46px;
  align-items:start;
}
.contact-guide{
  position:sticky;
  top:120px;
  padding:30px;
  border:2px solid #222;
  border-radius:24px;
  background:#fff9d8;
  box-shadow:6px 6px 0 #222;
}
.contact-guide h2{
  margin:0 0 16px;
  font-family:"Zen Maru Gothic",sans-serif;
  font-size:1.8rem;
}
.contact-guide p{margin:0}
.contact-mini-links{
  display:grid;
  gap:10px;
  margin-top:24px;
}
.contact-mini-links a{
  display:flex;
  justify-content:space-between;
  padding:13px 15px;
  border:1px solid #222;
  border-radius:14px;
  background:#fff;
  font-weight:700;
}
.contact-mini-links a::after{content:"→"}

.contact-form-card{
  padding:38px;
  border:2px solid #222;
  border-radius:28px;
  background:#fff;
  box-shadow:7px 7px 0 #222;
}
.contact-form{display:grid;gap:20px}
.contact-form label{display:grid;gap:8px}
.contact-form label>span:first-child{font-weight:700}
.contact-form em{
  margin-left:6px;
  padding:2px 7px;
  border-radius:999px;
  background:#ffdddd;
  color:#8a3030;
  font-size:.68rem;
  font-style:normal;
}
.contact-form small{
  margin-left:6px;
  color:#777;
  font-size:.72rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid #bbb;
  border-radius:12px;
  background:#fff;
  font:inherit;
}
.contact-form textarea{resize:vertical;min-height:180px}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline:3px solid rgba(127,191,255,.28);
  border-color:#4688bd;
}
.contact-agree{
  grid-template-columns:auto 1fr!important;
  align-items:start;
  gap:10px!important;
  padding:15px;
  border-radius:14px;
  background:#f6f6f6;
}
.contact-agree input{margin-top:6px}
.contact-agree span{font-weight:400!important}
.contact-submit{
  min-height:56px;
  border:2px solid #222;
  border-radius:999px;
  background:#222;
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.contact-submit:hover{transform:translateY(-2px)}
.contact-success,.contact-error{
  margin:0 0 24px;
  padding:15px 17px;
  border-radius:14px;
  font-weight:700;
}
.contact-success{background:#e8f8ee;color:#236c3c;border:1px solid #b7e0c5}
.contact-error{background:#fff0f0;color:#9b3535;border:1px solid #efc0c0}
.contact-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

@media(max-width:820px){
  .contact-wrap{grid-template-columns:1fr}
  .contact-guide{position:static}
}
@media(max-width:560px){
  .contact-section{padding:70px 18px 90px}
  .contact-form-card{padding:26px 20px;border-radius:22px;box-shadow:5px 5px 0 #222}
  .contact-guide{padding:24px}
}

/* ===== CONTACT 上部デザイン統一 ===== */

.contact-hero {
  min-height: 590px;
  padding: 110px 24px 90px;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255,127,127,.14),
      transparent 23%
    ),
    radial-gradient(
      circle at 85% 30%,
      rgba(127,255,191,.18),
      transparent 24%
    ),
    #fffdf8;
}

.contact-hero-inner {
  max-width: 920px;
  position: relative;
  z-index: 2;
}

.contact-hero h1 {
  font-size: clamp(2.35rem, 5.8vw, 5.4rem);
  line-height: 1.35;
}

.contact-dot {
  border: none;
  opacity: .9;
  animation: contactFloat 7s ease-in-out infinite;
}

.contact-dot.cd1 {
  width: 150px;
  height: 150px;
  left: 7%;
  top: 16%;
  background: #ff7f7f;
}

.contact-dot.cd2 {
  width: 105px;
  height: 105px;
  right: 10%;
  top: 18%;
  background: #ffff7f;
  animation-delay: -1.5s;
}

.contact-dot.cd3 {
  width: 190px;
  height: 190px;
  right: -30px;
  bottom: 5%;
  background: #7fffbf;
  animation-delay: -3s;
}

/* 4つ目のブルーの円 */
.contact-hero::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  left: 13%;
  bottom: 11%;
  border-radius: 50%;
  background: #7fbfff;
  animation: contactFloat 7s ease-in-out -4.5s infinite;
}

@keyframes contactFloat {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

@media (max-width: 600px) {
  .contact-hero {
    min-height: 520px;
    padding: 80px 20px 70px;
  }

  .contact-hero h1 {
    font-size: 2.35rem;
  }

  .contact-dot.cd1 {
    width: 95px;
    height: 95px;
    left: -15px;
  }

  .contact-dot.cd2 {
    width: 75px;
    height: 75px;
    right: -5px;
  }

  .contact-dot.cd3 {
    width: 120px;
    height: 120px;
  }

  .contact-hero::before {
    width: 65px;
    height: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dot,
  .contact-hero::before {
    animation: none;
  }
}
