:root {
  --white: #fffdfc;
  --ivory: #fcf8f6;
  --pink-beige: #f8eeee;
  --pink-light: #f3dadd;
  --rose: #bf7080;
  --rose-dark: #9f5867;
  --brown: #684a49;
  --brown-dark: #4d3332;
  --line: #ecd4d7;
  --shadow: 0 16px 36px rgba(112, 73, 72, .1);
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--brown);
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,.95), transparent 26%),
    radial-gradient(circle at 88% 16%, rgba(243,218,221,.62), transparent 22%),
    linear-gradient(180deg, #fffdfc 0%, #fbf2f1 45%, #fff9f8 100%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .035em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

.entry-page {
  min-height: 100svh;
  padding-bottom: 40px;
}

.entry-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px 18px;
  background: rgba(255,253,252,.96);
  border-bottom: 1px solid rgba(236, 212, 215, .78);
  box-shadow: 0 5px 18px rgba(112, 73, 72, .06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.entry-back {
  position: absolute;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 700;
}

.entry-back::before {
  content: "‹";
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.entry-logo,
.entry-footer-logo {
  color: var(--brown-dark);
  font-family: Georgia, serif;
  font-size: 21px;
  letter-spacing: .12em;
  line-height: 1;
}

.entry-logo span,
.entry-footer-logo span {
  color: var(--rose);
  font-size: .68em;
}

.entry-main {
  width: min(calc(100% - 28px), 750px);
  margin: 0 auto;
  padding: 34px 0 18px;
}

.entry-form-section {
  position: relative;
  overflow: hidden;
  padding: 32px 18px 28px;
  background: rgba(255,253,252,.92);
  border: 1px solid rgba(236, 212, 215, .86);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.entry-form-section::before,
.entry-form-section::after {
  position: absolute;
  z-index: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(243,218,221,.54), transparent 70%);
  content: "";
  pointer-events: none;
}

.entry-form-section::before {
  top: -62px;
  right: -50px;
}

.entry-form-section::after {
  bottom: 14%;
  left: -76px;
}

.entry-heading,
.form-steps,
.entry-note,
.entry-form {
  position: relative;
  z-index: 1;
}

.entry-heading {
  margin-bottom: 24px;
  text-align: center;
}

.entry-en {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  min-height: 34px;
  margin: 0 0 12px;
  color: var(--rose-dark);
  border: 1px solid #e9c5ca;
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
}

.entry-heading h1 {
  margin: 0;
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: clamp(24px, 7vw, 34px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .08em;
}

.entry-heading > p:not(.entry-en) {
  margin: 12px 0 0;
  color: #927978;
  font-size: 13px;
  line-height: 1.8;
}

.form-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.form-steps li {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px;
  color: #a98d8c;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.form-steps li.is-active {
  color: #fff;
  background: linear-gradient(135deg, #c77988, #ad5e6e);
  border-color: transparent;
  box-shadow: 0 9px 20px rgba(157, 88, 103, .18);
}

.entry-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  color: #806968;
  background: #fff8f7;
  border: 1px dashed var(--line);
  border-radius: 16px;
  font-size: 12px;
}

.entry-note span,
.required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 22px;
  margin-right: 7px;
  color: #fff;
  background: var(--rose);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.entry-form {
  display: grid;
  gap: 25px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label,
.form-fieldset legend {
  color: var(--brown-dark);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.required {
  margin-right: 0;
  margin-left: 6px;
  vertical-align: middle;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  color: var(--brown);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #bf7080 50%),
    linear-gradient(135deg, #bf7080 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-field textarea {
  min-height: 128px;
  resize: vertical;
}

.entry-policy-notice {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  color: #7b5b58;
}

.entry-policy-accordion {
  background: rgba(255, 255, 255, .9);
  border-top: 1px solid #c9ad8b;
  border-bottom: 1px solid #c9ad8b;
  border-radius: 2px;
  /* box-shadow: 0 10px 28px rgba(112, 73, 72, .08); */
}

.entry-policy-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 15px 16px;
  list-style: none;
  cursor: pointer;
  color: #6c563f;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .06em;
}

.entry-policy-accordion summary::-webkit-details-marker {
  display: none;
}

.entry-policy-accordion-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.entry-policy-accordion-icon::before,
.entry-policy-accordion-icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 2px;
  background: #6c563f;
  border-radius: 999px;
  content: "";
  transform: translate(-50%, -50%);
}

.entry-policy-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.entry-policy-accordion[open] .entry-policy-accordion-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.entry-policy-accordion[open] .entry-policy-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.entry-policy-accordion-body {
  padding: 1rem 16px 22px;
  border-top: 1px solid rgba(139, 115, 86, .45);
  overflow: hidden;
  opacity: 1;
  transition: max-height .34s ease, opacity .28s ease;
}

.entry-policy-accordion p,
.entry-policy-accordion dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.85;
  text-align: justify;
}

.entry-policy-accordion p + p {
  margin-top: 8px;
}

.entry-policy-accordion dl {
  margin: 22px 0 0;
}

.entry-policy-accordion dt {
  margin: 20px 0 8px;
  color: #6c563f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.entry-policy-accordion .privacy-caps {
  margin: 14px 0 0;
  padding: 14px 15px;
  border: 2px solid rgba(139, 115, 86, .22);
}

.entry-policy-accordion .privacy-caps dt {
  display: inline-block;
  margin: -28px 0 8px;
  padding: 0 10px;
  background: #fff;
}

.entry-policy-accordion .privacy-caps dd {
  position: relative;
  padding-left: 18px;
}

.entry-policy-accordion .privacy-caps dd + dd {
  margin-top: 6px;
}

.entry-policy-accordion .privacy-caps dd::before {
  position: absolute;
  top: .72em;
  left: 2px;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.form-date-picker {
  display: grid;
  gap: 12px;
}

.date-display {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 13px 16px 13px 18px;
  color: var(--brown);
  text-align: left;
  background: #fff;
  border: 1.5px solid #f0b8cd;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
  cursor: pointer;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.date-display:focus-visible {
  border-color: var(--rose);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(191, 112, 128, .12);
}

.date-display-icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-left: 12px;
  background: #fff0f5;
  border: 1px solid #f2bdd0;
  border-radius: 12px;
}

.date-display-icon::before {
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#f28bb5, #f28bb5) 0 4px / 100% 2px no-repeat,
    linear-gradient(#f28bb5, #f28bb5) 4px 0 / 2px 4px no-repeat,
    linear-gradient(#f28bb5, #f28bb5) 10px 0 / 2px 4px no-repeat;
  border: 2px solid #f28bb5;
  border-radius: 4px;
  content: "";
}

.custom-calendar {
  display: none;
  padding: 18px 14px 15px;
  background: rgba(255,255,255,.96);
  border: 3px solid #f28bb5;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(180, 87, 125, .13);
  opacity: 0;
  transform: translateY(-8px);
}

.custom-calendar.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: calendarFadeIn .22s ease;
}

.custom-calendar[hidden] {
  display: none;
}

@keyframes calendarFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 6px;
}

.calendar-month {
  margin: 0;
  color: #5e4d59;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}

.calendar-nav {
  display: flex;
  gap: 10px;
}

.calendar-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #f08bb7;
  background: #fff6f9;
  border: 1px solid #f4bfd2;
  border-radius: 50%;
  cursor: pointer;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.calendar-nav button span {
  display: block;
  width: 20px;
  height: 20px;
  font-size: 30px;
  line-height: 18px;
  text-align: center;
  transform: translateY(-1px);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  display: grid;
  place-items: center;
  min-height: 30px;
  color: #5e4d59;
  font-size: 15px;
  font-weight: 700;
}

.calendar-day {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 0;
  color: #5e4d59;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.calendar-day:not(:disabled):hover {
  background: #fff0f5;
}

.calendar-day.is-selected {
  color: #5e4d59;
  background: #fde4ef;
}

.calendar-day.is-today:not(.is-selected) {
  color: #bf7080;
  box-shadow: inset 0 0 0 1px #f2bdd0;
}

.calendar-day.is-empty {
  cursor: default;
  pointer-events: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #c3aaa9;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #fffdfc;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(191, 112, 128, .12);
}

.form-fieldset {
  min-width: 0;
  padding: 16px 14px 18px;
  margin: 0;
  background: #fffafa;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.form-fieldset legend {
  padding: 0 8px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.entry-submit-area {
  display: grid;
  gap: 12px;
  padding-top: 8px;
  text-align: center;
}

.entry-submit,
.entry-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  color: #fff;
  background: linear-gradient(135deg, #c77988, #ad5e6e);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  box-shadow: 0 13px 30px rgba(157, 88, 103, .24), inset 0 0 0 3px rgba(255,255,255,.12);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
}

.entry-button-secondary {
  color: var(--rose-dark);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(112, 73, 72, .08);
}

.entry-submit-link {
  text-decoration: none;
}

.entry-submit-area p {
  margin: 0;
  color: #a08786;
  font-size: 11px;
  line-height: 1.65;
}

.entry-confirm-form {
  position: relative;
  z-index: 1;
}

.confirm-table-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(112, 73, 72, .08);
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.confirm-table th,
.confirm-table td {
  display: block;
  width: 100%;
  text-align: left;
  vertical-align: top;
}

.confirm-table th {
  padding: 15px 16px 6px;
  color: var(--rose-dark);
  background: #fff8f7;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
}

.confirm-table td {
  padding: 0 16px 16px;
  color: var(--brown);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.75;
  word-break: break-word;
}

.confirm-table tr:last-child td {
  border-bottom: 0;
}

.entry-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 45px;
}

.entry-error {
  position: relative;
  z-index: 1;
  padding: 16px;
  color: #8f4c5a;
  background: #fff8f9;
  border: 1px solid #efc8cf;
  border-radius: 18px;
}

.entry-error p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.7;
}

.entry-error p:last-child {
  margin-bottom: 0;
}

.thanks-card {
  text-align: center;
}

.thanks-message {
  position: relative;
  z-index: 1;
  padding: 28px 16px;
  margin-top: 45px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 26px rgba(112, 73, 72, .08);
}

.thanks-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  color: #fff;
  background: linear-gradient(135deg, #c77988, #ad5e6e);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(157, 88, 103, .18);
  font-family: Georgia, serif;
  font-size: 24px;
}

.thanks-message h2 {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .06em;
}

.thanks-message p {
  margin: 8px 0 0;
  color: #806968;
  font-size: 14px;
  line-height: 1.8;
}

.entry-footer {
  width: min(calc(100% - 28px), 750px);
  margin: 0 auto;
  padding: 24px 0 0;
  color: #b69b9a;
  text-align: center;
}

.entry-footer-logo {
  margin-bottom: 12px;
  color: var(--brown-dark);
}

.entry-footer p {
  margin: 0;
  font-size: 10px;
}

@media (min-width: 640px) {
  .entry-main { padding-top: 46px; }
  .entry-form-section { padding: 42px 46px 40px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .entry-actions {
    grid-template-columns: 1fr 1.25fr;
    align-items: center;
  }
  .thanks-card .entry-actions {
    grid-template-columns: minmax(260px, 420px);
    justify-content: center;
  }
  .confirm-table th,
  .confirm-table td {
    display: table-cell;
  }
  .confirm-table th {
    width: 32%;
    padding: 17px 18px;
    border-bottom: 1px solid var(--line);
  }
  .confirm-table td {
    padding: 17px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
