@charset "utf-8";

/* ========================================
   Entry Page Styles
   ======================================== */

:root {
  /* Brand */
  --c-primary: #00a085;
  --c-primary-dark: #00806a;
  --c-primary-focus: rgba(0, 160, 133, 0.18);
  --c-mint: #cbece6;
  --c-mint-light: #e5f5f2;
  --c-mint-lighter: #f3faf8;
  --c-tint: rgba(0, 160, 133, 0.06);
  --c-accent: #fff050;
  /* Surface / text */
  --c-bg: #f6f7f7;
  --c-white: #fff;
  --c-input-bg: #f8fbfa;
  --c-text: #4a4a4a;
  --c-heading: #2a2a2a;
  --c-label: #333;
  --c-note: #999;
  --c-placeholder: #aaa;
  --c-border: #d3e5e0;
  --c-header-border: #edf3f1;
  /* State */
  --c-error: #d64545;
  --c-error-focus: rgba(214, 69, 69, 0.15);
  --c-disabled-bg: #eef2f1;
  --c-disabled-btn: #cbd5d2;
  /* Datepicker grays */
  --c-gray-weak: #ccc;
  --c-gray: #999;
  --c-gray-strong: #666;
  --c-gray-bg: #f5f5f5;
  /* Shadow blacks */
  --c-shadow-weak: rgba(0, 0, 0, 0.1);
  --c-shadow: rgba(0, 0, 0, 0.15);
  /* Radius / shadow */
  --r-lg: 16px;
  --r-md: 10px;
  --r-sm: 4px;
  --r-pill: 999px;
  --shadow-press: 0 4px 0 var(--c-shadow-weak);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
}

fieldset {
  border: none;
}

.p-entry {
  padding: 0 16px;
}

.p-entry-title {
  font-size: clamp(32px, calc(32px + (42 - 32) * ((100vw - 375px) / (1920 - 375))), 42px);
  text-align: center;
  font-weight: 900;
  padding-block-start: clamp(60px, calc(60px + (100 - 60) * ((100vw - 375px) / (1920 - 375))), 100px);
}

/* Form Container */
.p-entry-form {
  padding: clamp(40px, calc(40px + (64 - 40) * ((100vw - 375px) / (1920 - 375))), 64px) 0
    clamp(64px, calc(64px + (96 - 64) * ((100vw - 375px) / (1920 - 375))), 96px);
  color: var(--c-text);
}

.p-entry-form-wrapper {
  max-width: 1000px;
  padding: clamp(20px, calc(20px + (48 - 20) * ((100vw - 375px) / (1920 - 375))), 48px)
    clamp(16px, calc(16px + (48 - 16) * ((100vw - 375px) / (1920 - 375))), 48px);
  margin-inline: auto;
  background-color: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* Form List Item */
.p-entry-form-list {
  display: flex;
  align-items: baseline;
  font-size: clamp(14px, calc(14px + (16 - 14) * ((100vw - 375px) / (1920 - 375))), 16px);
  white-space: nowrap;
  border-top: solid 1px var(--c-border);
  padding: clamp(22px, calc(22px + (28 - 22) * ((100vw - 375px) / (1920 - 375))), 28px)
    clamp(4px, calc(4px + (8 - 4) * ((100vw - 375px) / (1920 - 375))), 8px);
  gap: clamp(8px, calc(8px + (10 - 8) * ((100vw - 375px) / (1920 - 375))), 10px);
}

.p-entry-form-list:first-of-type {
  border-top: none;
}

/* Form Title */
.p-entry-form-title {
  width: 30%;
  display: flex;
  align-items: baseline;
  gap: clamp(10px, calc(10px + (12 - 10) * ((100vw - 375px) / (1920 - 375))), 12px);
  white-space: pre-line;
  font-weight: 700;
  color: var(--c-label);
}

.p-entry-form-required {
  display: inline-block;
  background: var(--c-primary);
  color: var(--c-white);
  white-space: nowrap;
  font-size: clamp(10px, calc(10px + (11 - 10) * ((100vw - 375px) / (1920 - 375))), 11px);
  font-weight: 400;
  line-height: 1.5;
  padding: 0 10px;
  border-radius: 2em;
}

.p-entry-form-required[data-badge-hidden] {
  visibility: hidden;
}

/* Form Data */
.p-entry-form-data {
  width: 70%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(14px, calc(14px + (20 - 14) * ((100vw - 375px) / (1920 - 375))), 20px);
  row-gap: 8px;
}

.p-entry-form-data--funds {
  align-items: baseline;
}

.p-entry-form-data-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: clamp(8px, calc(8px + (10 - 8) * ((100vw - 375px) / (1920 - 375))), 10px);
  row-gap: 4px;
}

.p-entry-form-data-item span {
  min-width: 35px;
}

/* Field wrapper（レイアウトに影響させず、コントロールとエラー枠をまとめる） */
.c-field {
  display: contents;
}

/* Form Inputs */
.p-entry-form input,
.p-entry-form select,
.p-entry-form textarea {
  padding: 12px 14px;
  font-size: 16px;
  color: var(--c-text);
  background-color: var(--c-input-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.p-entry-form input:focus,
.p-entry-form select:focus,
.p-entry-form textarea:focus {
  outline: none;
  background-color: var(--c-white);
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-focus);
}

.p-entry-form input::placeholder,
.p-entry-form textarea::placeholder {
  color: var(--c-placeholder);
}

.p-entry-form select {
  text-align: left;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2300a085' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.p-entry-form textarea {
  width: 100%;
}

.p-entry-form input[type="text"],
.p-entry-form input[type="email"],
.p-entry-form input[type="number"] {
  width: 100%;
  max-width: 500px;
}

.p-entry-form input[type="tel"] {
  width: 100%;
  max-width: 300px;
}

.p-entry-form select {
  width: 100%;
  max-width: 300px;
  padding: 12px 40px 12px 14px;
}

/* Checkbox & Radio Styles */
.p-entry-form input[type="checkbox"],
.p-entry-form input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  background-color: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  position: relative;
  vertical-align: middle;
  transition: 0.2s;
  margin-top: -1px;
  cursor: pointer;
  flex-shrink: 0;
}

.p-entry-form input[type="radio"] {
  border-radius: 50%;
}

.p-entry-form input[type="checkbox"]:checked,
.p-entry-form input[type="radio"]:checked {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.p-entry-form input[type="checkbox"]:checked::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--c-white);
  border-bottom: 2px solid var(--c-white);
  transform: translate(-50%, -58%) rotate(45deg);
  content: "";
}

.p-entry-form input[type="radio"]:checked::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-white);
  transform: translate(-50%, -50%);
  content: "";
}

/* Form Data Note */
.p-entry-form-data-note {
  width: 100%;
  font-size: 12px;
  color: var(--c-note);
}

/* Validation Error（各コンポーネントが持つエラースロット。空なら非表示） */
.p-entry-form-error {
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-error);
}

.p-entry-form-error:empty {
  display: none;
}

.p-entry-form .is-error {
  border-color: var(--c-error);
  box-shadow: 0 0 0 3px var(--c-error-focus);
}

/* Address Fields */
.p-entry-form-data-address {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, calc(6px + (10 - 6) * ((100vw - 375px) / (1920 - 375))), 10px);
  width: 100%;
}

.p-entry-form-data-prefectures {
  max-width: 200px !important;
}

.p-entry-form-data-zip {
  max-width: 160px !important;
}

.p-entry-form-data-address input[type="text"] {
  max-width: 100%;
}

/* People Input */
.p-entry-form-data-people {
  max-width: 150px !important;
  text-align: right;
}

/* Property Section */
.p-entry-form-data-property {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Checkbox Wrapper */
.p-entry-form-data-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
}

.p-entry-form-data-checkbox label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Advertisement Section */
.p-entry-form-data-advertisement {
  width: 100%;
  margin-top: 20px;
}

.p-entry-form-w100 {
  width: 100%;
}

.p-entry-form-data-advertisement-title {
  border-bottom: solid 2px var(--c-mint);
  padding-bottom: 8px;
  font-weight: 700;
  color: var(--c-primary-dark);
}

.p-entry-form-data-advertisement-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, calc(10px + (12 - 10) * ((100vw - 375px) / (1920 - 375))), 12px);
}

.p-entry-form-data-advertisement-textarea {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Submit Button */
.p-entry-sbm-btn-wrap {
  margin-top: clamp(32px, calc(32px + (48 - 32) * ((100vw - 375px) / (1920 - 375))), 48px);
  text-align: center;
}

.p-entry-sbm-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  background-color: var(--c-primary);
  padding: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1920 - 375))), 18px)
    clamp(24px, calc(24px + (40 - 24) * ((100vw - 375px) / (1920 - 375))), 40px);
  margin-inline: auto;
  position: relative;
  color: var(--c-white);
  font-size: clamp(16px, calc(16px + (18 - 16) * ((100vw - 375px) / (1920 - 375))), 18px);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-press);
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.1s;
}

.p-entry-sbm-btn::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--c-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath fill='none' stroke='%2300a085' stroke-width='2' d='M1 1l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.p-entry-sbm-btn:hover {
  background-color: var(--c-primary-dark);
}

.p-entry-sbm-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--c-shadow-weak);
}

.p-entry-sbm-btn[disabled] {
  background-color: var(--c-disabled-btn);
  color: var(--c-white);
  cursor: not-allowed;
  box-shadow: none;
}

.p-entry-sbm-btn[disabled]::after {
  opacity: 0.5;
}

/* Textarea Disabled */
textarea[disabled] {
  background-color: var(--c-disabled-bg);
}

/* Confirmation Step */
.p-entry-confirm {
  max-width: 1000px;
  margin-inline: auto;
  margin-block: clamp(40px, calc(40px + (64 - 40) * ((100vw - 375px) / (1920 - 375))), 64px);
  padding: clamp(20px, calc(20px + (48 - 20) * ((100vw - 375px) / (1920 - 375))), 48px)
    clamp(16px, calc(16px + (48 - 16) * ((100vw - 375px) / (1920 - 375))), 48px);
  background-color: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.p-entry-confirm-lead {
  text-align: center;
  font-size: clamp(15px, calc(15px + (17 - 15) * ((100vw - 375px) / (1920 - 375))), 17px);
  color: var(--c-label);
  margin-block-end: clamp(24px, calc(24px + (40 - 24) * ((100vw - 375px) / (1920 - 375))), 40px);
}

.p-entry-confirm-item {
  display: flex;
  gap: clamp(16px, calc(16px + (24 - 16) * ((100vw - 375px) / (1920 - 375))), 24px);
  padding: clamp(18px, calc(18px + (22 - 18) * ((100vw - 375px) / (1920 - 375))), 22px) 8px;
  border-top: solid 1px var(--c-border);
}

.p-entry-confirm-item:last-child {
  border-bottom: solid 1px var(--c-border);
}

.p-entry-confirm-item dt {
  width: 30%;
  font-weight: 700;
  color: var(--c-label);
}

.p-entry-confirm-item dd {
  width: 70%;
  line-height: 1.7;
  word-break: break-all;
}

.p-entry-confirm-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-block-start: clamp(32px, calc(32px + (48 - 32) * ((100vw - 375px) / (1920 - 375))), 48px);
}

.p-entry-confirm-back,
.p-entry-confirm-submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 200px;
  padding: clamp(14px, calc(14px + (16 - 14) * ((100vw - 375px) / (1920 - 375))), 16px)
    clamp(28px, calc(28px + (44 - 28) * ((100vw - 375px) / (1920 - 375))), 44px);
  font-size: clamp(15px, calc(15px + (17 - 15) * ((100vw - 375px) / (1920 - 375))), 17px);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.1s, box-shadow 0.1s;
}

.p-entry-confirm-submit {
  background-color: var(--c-primary);
  color: var(--c-white);
  border: none;
  box-shadow: var(--shadow-press);
}

.p-entry-confirm-submit:hover {
  background-color: var(--c-primary-dark);
}

.p-entry-confirm-submit:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--c-shadow-weak);
}

.p-entry-confirm-back {
  background-color: var(--c-white);
  color: var(--c-primary-dark);
  border: 1.5px solid var(--c-primary);
}

.p-entry-confirm-back:hover {
  background-color: var(--c-tint);
}

@media (max-width: 768px) {
  .p-entry-confirm-item {
    display: block;
  }

  .p-entry-confirm-item dt {
    width: 100%;
    margin-bottom: 8px;
  }

  .p-entry-confirm-item dd {
    width: 100%;
  }

  .p-entry-confirm-back,
  .p-entry-confirm-submit {
    width: 100%;
  }
}

/* Area Fieldset */
.p-entry-form-area {
  margin-top: 14px;
}

.p-entry-form-area legend {
  font-weight: 700;
  color: var(--c-primary-dark);
}

.p-entry-form-area--floor legend {
  margin-bottom: 8px;
}

.p-entry-form-area--child {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
  background-color: var(--c-tint);
  border-radius: var(--r-md);
  padding: clamp(12px, calc(12px + (16 - 12) * ((100vw - 375px) / (1920 - 375))), 16px);
}

.p-entry-form-area--floor {
  display: grid;
  gap: 0 10px;
  grid-template-columns: repeat(3, 1fr);
}

.p-entry-form-area label {
  cursor: pointer;
}

.p-entry-form-area-item {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  margin-bottom: 16px;
}

.p-entry-form-area--child .p-entry-form-area-item {
  margin-bottom: 0;
}

.p-entry-form-area-note {
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--c-note);
}

/* PC Only */
.c-pc-only {
  display: block;
}

/* ========================================
   Custom Datepicker
   ======================================== */
.p-entry-custom-datepicker {
  position: relative;
  width: 100%;
  max-width: 200px;
}

.p-entry-custom-datepicker input {
  cursor: pointer;
}

.p-entry-calendar-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px var(--c-shadow);
  width: 280px;
  padding: 16px;
}

.p-entry-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.p-entry-calendar-prev,
.p-entry-calendar-next {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  color: var(--c-primary);
  transition: background-color 0.2s;
}

.p-entry-calendar-prev:hover,
.p-entry-calendar-next:hover {
  background-color: var(--c-tint);
}

.p-entry-calendar-month-year {
  font-weight: bold;
  font-size: 16px;
}

.p-entry-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.p-entry-weekday {
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  color: var(--c-gray-strong);
  padding: 8px 4px;
}

.p-entry-calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.p-entry-calendar-date {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: var(--r-sm);
  cursor: default;
  transition: all 0.2s;
}

.p-entry-calendar-date.other-month {
  color: var(--c-gray-weak);
}

.p-entry-calendar-date.past-date {
  color: var(--c-gray-weak);
  cursor: not-allowed;
}

.p-entry-calendar-date.disabled-day {
  background-color: var(--c-gray-bg) !important;
  color: var(--c-gray) !important;
  cursor: not-allowed !important;
  position: relative;
}

.p-entry-calendar-date.disabled-day::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background-color: var(--c-gray);
  transform: translateY(-50%);
}

.p-entry-calendar-date.selectable {
  cursor: pointer;
  color: var(--c-label);
}

.p-entry-calendar-date.selectable:hover {
  background-color: var(--c-mint-light);
  color: var(--c-primary-dark);
}

.p-entry-calendar-date.today {
  background-color: var(--c-primary);
  color: var(--c-white);
  font-weight: bold;
}

.p-entry-calendar-date.today.disabled-day {
  background-color: var(--c-gray-bg) !important;
  color: var(--c-gray) !important;
}

.p-entry-calendar-date.selected {
  background-color: var(--c-primary) !important;
  color: var(--c-white) !important;
  font-weight: bold;
}

/* ========================================
   Responsive (max-width: 992px)
   ======================================== */
@media (max-width: 992px) {
  .p-entry-form-data-advertisement-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Responsive (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .p-entry-form-list {
    display: block;
  }

  .p-entry-form-title {
    width: 100%;
    margin-bottom: 14px;
  }

  .p-entry-form-data {
    width: 100%;
  }

  .p-entry-form-data-item {
    display: block;
  }

  .p-entry-form-data-item span {
    display: block;
  }

  .p-entry-form-data-advertisement-list {
    grid-template-columns: 1fr;
  }

  .p-entry-sbm-btn {
    width: 100%;
  }

  .c-pc-only {
    display: none;
  }
}

/* ========================================
   Responsive (max-width: 580px)
   ======================================== */
@media (max-width: 580px) {
  .p-entry-form-data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .p-entry-form-data-item {
    width: 100%;
  }
}

/* ========================================
   Thanks Page Styles
   ======================================== */
.p-thanks {
  padding: clamp(80px, calc(80px + (120 - 80) * ((100vw - 375px) / (1920 - 375))), 120px) 16px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-thanks-inner {
  max-width: 800px;
  margin-inline: auto;
  padding: clamp(32px, calc(32px + (64 - 32) * ((100vw - 375px) / (1920 - 375))), 64px);
  text-align: center;
  background-color: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.p-thanks-title {
  font-size: clamp(28px, calc(28px + (42 - 28) * ((100vw - 375px) / (1920 - 375))), 42px);
  font-weight: 900;
  color: var(--c-label);
  margin-block-end: 40px;
}

.p-thanks-text {
  font-size: clamp(14px, calc(14px + (16 - 14) * ((100vw - 375px) / (1920 - 375))), 16px);
  line-height: 2;
  margin-block-end: 40px;
}

.p-thanks-btn-wrap {
  margin-block-start: 40px;
}

.p-thanks-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--c-primary);
  padding: 16px 48px;
  color: var(--c-white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-press);
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.1s;
}

.p-thanks-btn:hover {
  background-color: var(--c-primary-dark);
}

.p-thanks-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--c-shadow-weak);
}
