@charset "utf-8";

/* ===== Base ===== */
:root{
  --bg: #faf7f2;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111827;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  --radius: 18px;
}

*{ box-sizing: border-box; }

body{
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: radial-gradient(900px 500px at 20% 10%, #fff5cc 0%, rgba(255,245,204,0) 60%),
              radial-gradient(800px 500px at 90% 20%, #d6f5d6 0%, rgba(214,245,214,0) 55%),
              var(--bg);
  min-height: 100vh;
  padding: 56px 16px;
  line-height: 1.7;
}

/* ===== Form Card ===== */
form{
  width: min(720px, 92vw);
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(229,231,235,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

/* タイトルがないので、フォームの先頭を整えるための余白 */
form::before{
  content: "Contact";
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

/* ===== Typography tweaks ===== */
form{
  font-size: 15px;
}
form br{
  display: block;
  content: "";
  margin: 10px 0;
}

/* ===== Inputs ===== */
input[type="text"],
input[type="email"],
select,
textarea{
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

/* テキストエリア */
textarea{
  min-height: 160px;
  resize: vertical;
}

/* focus（クリック中） */
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus{
  border-color: rgba(17, 24, 39, 0.45);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

/* placeholder */
::placeholder{
  color: #9ca3af;
}

/* selectの見た目（簡単に） */
select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #111827 50%),
    linear-gradient(135deg, #111827 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* ===== Radio ===== */
input[type="radio"]{
  accent-color: #111827;
  transform: translateY(1px);
}

input[type="radio"] + span{
  margin-right: 14px;
}

/* ラジオ部分の行間が詰まりすぎるので軽く整える */
form{
  /* 文章とフォーム部品の間に余白ができやすくなる */
}
 
/* ===== Submit Button ===== */
input[type="submit"]{
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #111827, #374151);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, opacity 160ms ease;
  margin-top: 10px;
  box-shadow: 0 10px 20px rgba(17,24,39,0.18);
}

input[type="submit"]:hover{
  transform: translateY(-1px);
}

input[type="submit"]:active{
  transform: translateY(0);
  opacity: 0.9;
}

/* ===== Small screens ===== */
@media (max-width: 480px){
  form{
    padding: 22px 16px;
  }
  form::before{
    font-size: 18px;
  }
}
