@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
  --bg-dark: transparent;
  --accent-primary: #1A365D;
  --accent-glow: rgba(26, 54, 93, 0.2);
  --glass-bg: #ffffff;
  --glass-border: #cccccc;
  --text-white: #333333;
  --text-dim: #666666;
  --radius: 12px;
  color-scheme: light;
}

html,
body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: transparent !important;
  color: var(--text-white) !important;
  line-height: 1.6;
  padding: 0 !important;
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 10px;
  animation: pageIn 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.form-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: none !important;
  width: 100%;
}

.form-group {
  margin-bottom: 35px;
  position: relative;
}

.label-container {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.label-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  opacity: 0.8;
  color: var(--accent-primary);
}

label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-req {
  font-size: 10px;
  background: var(--accent-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 12px;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  max-width: 100%;
  height: 56px;
  background: #ffffff !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px;
  padding: 0 20px;
  font-size: 16px;
  color: var(--text-white) !important;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

textarea {
  width: 100%;
  max-width: 100%;
  min-height: 160px;
  background: #ffffff !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 16px;
  color: var(--text-white) !important;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  resize: vertical;
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-2px);
}

input[type="date"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

input[type="date"]::-webkit-datetime-edit {
  padding-right: 30px;
}

#schedule-section {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

#schedule-section.is-active {
  max-height: 2500px;
  opacity: 1;
  overflow: visible;
}

.section-header {
  margin: 40px 0 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  margin: 0;
  color: var(--accent-primary);
  letter-spacing: 0.15em;
}

.section-line {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  flex-grow: 1;
  opacity: 0.3;
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.schedule-item {
  background: #ffffff !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 12px;
  padding: 35px 30px;
  position: relative;
  opacity: 1;
  max-height: 800px;
  width: 100%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-item.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.schedule-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.15);
}

.item-number {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent-primary);
  color: white;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 8px 15px rgba(59, 130, 246, 0.4);
  z-index: 2;
}

.schedule-inputs {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 25px;
  align-items: flex-start;
  margin-top: 5px;
}

.input-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.schedule-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  width: 100%;
}

.time-separator {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14px;
  opacity: 0.5;
}

.time-wrapper {
  position: relative;
  width: 100%;
}

.time-wrapper::after {
  content: "笆ｼ";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  pointer-events: none;
  opacity: 0.4;
}

.submit-container {
  margin-top: 60px;
  margin-bottom: 30px;
  text-align: center;
}

.btn-submit {
  width: 100%;
  max-width: 500px;
  padding: 26px 40px;
  font-size: 22px;
  font-weight: 900;
  color: #fff !important;
  background: var(--accent-primary) !important;
  border: none !important;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: visible;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

@keyframes poyon {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  60% { transform: scale(0.95); }
  80% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.btn-submit.is-ready {
  animation: poyon 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  background: #2563eb !important;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4) !important;
}

.footer-text {
  margin: 12px 0 0;
  padding: 0 0 10px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  line-height: 2;
}

.footer-text:last-child {
  margin-bottom: 0 !important;
}

@keyframes flyPaperPlane {
  0% {
    transform: translate(-50%, -50%) scale(0.2) rotate(-30deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translate(-20%, -50%) scale(1.2) rotate(-10deg);
  }
  100% {
    transform: translate(250px, -250px) scale(0.8) rotate(20deg);
    opacity: 0;
  }
}

.paper-plane {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  animation: flyPaperPlane 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@media (max-width: 768px) {
  .form-card {
    padding: 0;
  }

  .schedule-item {
    padding: 35px 20px 25px;
  }

  .schedule-inputs {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .time-row {
    gap: 10px;
  }

  .time-separator {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px 10px;
  }

  .time-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .time-separator {
    padding: 5px 0;
    transform: rotate(90deg);
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  padding: 0 !important;
}

.thanks-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 10px;
}

.thanks-card {
  margin-bottom: 10px;
}

.thanks-footer {
  margin: 10px 0 0;
  padding-bottom: 10px;
}

body.page .entry-content,
body.page .post_content,
body .l-mainContent__inner {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body .wp-block-group,
body .swell-block-fullWide,
body .alignfull {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}