* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #917546;
  --gold-dark: #6b5636;
  --gold-pale: #f4ecdc;
  --bg-top: #faf6ef;
  --bg-bottom: #ece1cb;
  --surface: #fffdfa;
  --border: #e3d6bf;
  --ink: #2c2620;
  --ink-dim: #8a7d68;
  --black: #1a1712;
  --danger: #b5544a;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: #ffffff;
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

#page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

#form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 26px 30px;
  box-shadow: 0 16px 36px rgba(107, 86, 54, 0.14);
}

.hero {
  width: 100%;
  background: var(--bg-bottom);
}

.hero-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 46px 24px 38px;
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.hero-bar {
  flex: 0 0 auto;
  width: 3px;
  min-height: 78px;
  margin-top: 4px;
  background: var(--gold);
}

.hero-copy {
  flex: 1 1 auto;
}

.eyebrow {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--gold-dark);
  background: var(--surface);
  display: inline-block;
  padding: 5px 16px;
  border-radius: 0;
  margin: 0 0 14px;
}

h1 {
  font-family: "Shippori Mincho", serif;
  font-weight: 800;
  font-size: clamp(26px, 7.5vw, 32px);
  line-height: 1.4;
  color: var(--gold-dark);
  letter-spacing: .03em;
}

.phone-card {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 20px;
  margin-bottom: 24px;
}

.phone-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.phone-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.phone-card-sub {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 3px;
}

.phone-card-action {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-number {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--gold-dark);
  text-decoration: none;
  letter-spacing: .02em;
}

.phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 4px;
  background: var(--gold-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(107, 86, 54, 0.28);
}

.lead {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-dim);
  text-align: center;
  margin-bottom: 30px;
}

#apply-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#apply-form[hidden] {
  display: none;
}

.section-note {
  border-left: 3px solid var(--gold);
  padding-left: 14px;
}

.section-note h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  margin-bottom: 6px;
}

.section-note p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-dim);
}

label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
  margin-top: 18px;
  margin-bottom: 7px;
  display: block;
}

label:first-child {
  margin-top: 0;
}

.req {
  display: inline-block;
  margin-left: 4px;
  color: var(--danger);
  font-weight: 700;
  vertical-align: middle;
}

.optional {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--gold-pale);
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 2px;
  border: 1px solid var(--border);
  background: #f9f6f0;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
}

input::placeholder {
  color: #b4a890;
}

input[type="date"]:invalid,
select:invalid {
  color: #b4a890;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(145, 117, 70, 0.14);
}

.datetime-row {
  display: flex;
  gap: 10px;
}

.datetime-row input[type="date"] {
  flex: 1 1 auto;
  min-width: 0;
}

.datetime-row select {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23917546' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 32px;
}

button#submit-btn {
  margin-top: 30px;
  width: 100%;
  padding: 17px;
  border: none;
  border-radius: 2px;
  background: var(--gold-dark);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  box-shadow: 0 8px 18px rgba(107, 86, 54, 0.28);
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}

button#submit-btn:active {
  transform: scale(0.98);
}

button#submit-btn:disabled {
  opacity: .6;
  cursor: default;
}

.form-error {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 2px;
  background: rgba(181, 84, 74, 0.08);
  border: 1px solid rgba(181, 84, 74, 0.3);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

#thanks {
  padding: 34px 16px 10px;
  text-align: center;
}

.thanks-icon {
  width: 52px;
  height: 52px;
  line-height: 52px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold-dark);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.thanks-title {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .03em;
  margin-bottom: 16px;
}

#thanks p:not(.thanks-title):not(.thanks-icon) {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-dim);
}

.back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
