@charset "utf-8";

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

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: 100px;
}

/* Form Container */
.p-entry-form {
  padding: 80px 0;
  color: #333333;
}

.p-entry-form-wrapper {
  max-width: 1232px;
  padding: 0 16px;
  margin-inline: auto;
}

/* Form List Item */
.p-entry-form-list {
  display: flex;
  align-items: baseline;
  font-size: 16px;
  white-space: nowrap;
  border-top: solid 1px #000;
  padding: 20px 16px;
  gap: 10px;
}

/* Form Title */
.p-entry-form-title {
  width: 30%;
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: pre-line;
  font-weight: 700;
}

.p-entry-form-required {
  color: #ff0000;
  white-space: nowrap;
  font-size: 14px;
}

/* Form Data */
.p-entry-form-data {
  width: 70%;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.p-entry-form-data-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

/* Form Inputs */
.p-entry-form input,
.p-entry-form select,
.p-entry-form textarea {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #000;
  border-radius: 4px;
}

.p-entry-form select {
  text-align: 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 8px;
}

/* Checkbox & Radio Styles */
.p-entry-form input[type="checkbox"],
.p-entry-form input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 3px;
  position: relative;
  vertical-align: middle;
  transition: 0.2s;
  margin-top: -1px;
  cursor: pointer;
}

.p-entry-form input[type="checkbox"]:checked,
.p-entry-form input[type="radio"]:checked {
  background: #000;
}

.p-entry-form input[type="checkbox"]:checked::before,
.p-entry-form input[type="radio"]:checked::before {
  position: absolute;
  top: 3px;
  left: 6px;
  transform: rotate(50deg);
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: "";
}

/* Form Data Note */
.p-entry-form-data-note {
  font-size: 12px;
}

/* Address Fields */
.p-entry-form-data-address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.p-entry-form-data-prefectures {
  max-width: 150px !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: 6px;
}

/* 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 1px #fff;
  padding-bottom: 4px;
}

.p-entry-form-data-advertisement-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

/* Submit Button */
.p-entry-sbm-btn-wrap {
  margin-top: 40px;
}

.p-entry-sbm-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  padding: 15px 17px;
  margin-inline: auto;
  position: relative;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.p-entry-sbm-btn:hover {
  opacity: 0.8;
}

.p-entry-sbm-btn[disabled] {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Textarea Disabled */
textarea[disabled] {
  background-color: #ccc;
}

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

.p-entry-form-area--child {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
  border-bottom: solid 1px #fff;
  padding: 10px 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-note {
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* 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: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  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: 4px;
  transition: background-color 0.2s;
}

.p-entry-calendar-prev:hover,
.p-entry-calendar-next:hover {
  background-color: #f0f0f0;
}

.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: #666;
  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: 4px;
  cursor: default;
  transition: all 0.2s;
}

.p-entry-calendar-date.other-month {
  color: #ccc;
}

.p-entry-calendar-date.past-date {
  color: #ccc;
  cursor: not-allowed;
}

.p-entry-calendar-date.disabled-day {
  background-color: #f5f5f5 !important;
  color: #999 !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: #999;
  transform: translateY(-50%);
}

.p-entry-calendar-date.selectable {
  cursor: pointer;
  color: #333;
}

.p-entry-calendar-date.selectable:hover {
  background-color: #e3f2fd;
  color: #1976d2;
}

.p-entry-calendar-date.today {
  background-color: #1976d2;
  color: white;
  font-weight: bold;
}

.p-entry-calendar-date.today.disabled-day {
  background-color: #f5f5f5 !important;
  color: #999 !important;
}

.p-entry-calendar-date.selected {
  background-color: #4caf50 !important;
  color: 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-title {
    padding-block-start: 60px;
  }

  .p-entry-form {
    padding: 60px 0;
  }

  .p-entry-form-wrapper {
    padding: 0;
  }

  .p-entry-form-list {
    display: block;
  }

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

  .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-address {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

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

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

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

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

  .p-entry-sbm-btn {
    width: 100%;
    font-size: 16px;
    padding: 12px 6px;
  }

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

/* ========================================
   Responsive (max-width: 580px)
   ======================================== */
@media (max-width: 580px) {
  .p-entry-form-list {
    font-size: 14px;
  }

  .p-entry-form-data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

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

  .p-entry-form-area {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Thanks Page Styles
   ======================================== */
.p-thanks {
  padding: 120px 16px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-thanks-inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

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

.p-thanks-text {
  font-size: 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: #000;
  padding: 15px 40px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.p-thanks-btn:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .p-thanks {
    padding: 80px 16px;
  }

  .p-thanks-text {
    font-size: 14px;
  }
}
