:root {
  --summer-yellow: #ffd84d;
  --sky-blue: #67c8f5;
  --light-cyan: #a7eff1;
  --orange: #ff9d2e;
  --coral: #ff765f;
  --navy: #12304a;
  --charcoal: #344454;
  --white: #ffffff;
  --ivory: #fff9e8;
  --pink-beige: #f2fbff;
  --pink-light: #dff7fb;
  --rose: var(--orange);
  --rose-dark: #176487;
  --brown: #344454;
  --brown-dark: #12304a;
  --line: #cfe9f3;
  --shadow: 0 16px 36px rgba(18, 48, 74, .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(167,239,241,.62), transparent 22%),
    linear-gradient(180deg, #ffffff 0%, #fff9e8 45%, #fffdf4 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,255,255,.96);
  border-bottom: 1px solid rgba(103, 200, 245, .78);
  box-shadow: 0 5px 18px rgba(18, 48, 74, .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,255,255,.92);
  border: 1px solid rgba(103, 200, 245, .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(167,239,241,.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 #bfe5f1;
  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: #607888;
  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: #7890a0;
  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: var(--navy);
  background: linear-gradient(135deg, var(--summer-yellow), var(--orange));
  border-color: transparent;
  box-shadow: 0 9px 20px rgba(255, 118, 95, .18);
}

.entry-note {
  margin: 0 0 20px;
  padding: 12px 14px;
  color: #52697a;
  background: #fff9e8;
  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: var(--navy);
  background: var(--summer-yellow);
  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%, #ff9d2e 50%),
    linear-gradient(135deg, #ff9d2e 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: #465b6b;
}

.entry-policy-accordion {
  background: rgba(255, 255, 255, .9);
  border-top: 1px solid #9ed9ea;
  border-bottom: 1px solid #9ed9ea;
  border-radius: 2px;
  /* box-shadow: 0 10px 28px rgba(18, 48, 74, .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: #28485f;
  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: #28485f;
  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(40, 72, 95, .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: #28485f;
  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(40, 72, 95, .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 #9edff0;
  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(103, 200, 245, .12);
}

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

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

.custom-calendar {
  display: none;
  padding: 18px 14px 15px;
  background: rgba(255,255,255,.96);
  border: 3px solid #67c8f5;
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(255, 118, 95, .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: #344454;
  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: #ff765f;
  background: #f2fbff;
  border: 1px solid #cceef6;
  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: #344454;
  font-size: 15px;
  font-weight: 700;
}

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

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

.calendar-day.is-selected {
  color: #344454;
  background: #dff7fb;
}

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

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

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #ffffff;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(103, 200, 245, .12);
}

.form-fieldset {
  min-width: 0;
  padding: 16px 14px 18px;
  margin: 0;
  background: #f7fcff;
  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: var(--navy);
  background: linear-gradient(135deg, var(--summer-yellow), var(--orange) 56%, var(--coral));
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 999px;
  box-shadow: 0 13px 30px rgba(255, 118, 95, .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(18, 48, 74, .08);
}

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

.entry-submit-area p {
  margin: 0;
  color: #7890a0;
  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(18, 48, 74, .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: #fff9e8;
  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: #b84a3a;
  background: #fff8f4;
  border: 1px solid #ffc9bd;
  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(18, 48, 74, .08);
}

.thanks-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--summer-yellow), var(--orange));
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(255, 118, 95, .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: #52697a;
  font-size: 14px;
  line-height: 1.8;
}

.entry-footer {
  width: min(calc(100% - 28px), 750px);
  margin: 0 auto;
  padding: 24px 0 0;
  color: #8aa4b2;
  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; }
}
