*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========== Header ========== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80px;
  padding: 10px;
  width: 100%;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
}

.logo-icon {
  height: 42px;
  width: 42px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #292524;
}

/* ========== Contents ========== */
.contents {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 0 16px;
  width: 100%;
  flex-shrink: 0;
}

.container {
  background-color: #fafafa;
  border: 1px solid #9f9fa9;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 480px;
  padding: 16px;
  width: 100%;
}

/* ========== Page Title ========== */
.page-title {
  width: 100%;
}

.page-title p {
  font-size: 24px;
  font-weight: 700;
  color: #292524;
  text-align: center;
  line-height: 1.2;
}

/* ========== Notice ========== */
.notice {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.notice p {
  font-size: 16px;
  font-weight: 500;
  color: #292524;
  line-height: 1.2;
  width: 100%;
}

/* ========== Form Error Message ========== */
.form-error-message {
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #a30037;
  background-color: #fff0f3;
  border: 1px solid #a30037;
  border-radius: 4px;
  padding: 8px 12px;
  line-height: 1.5;
}

.form-error-message:empty {
  display: none;
}

/* ========== Input Group ========== */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.input-label {
  font-size: 14px;
  font-weight: 500;
  color: #292524;
  white-space: nowrap;
}

.input-wrapper {
  background-color: #fafafa;
  border: 1px solid #90a1b9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  width: 100%;
  transition: border-color 0.15s;
}

.input-wrapper:focus-within {
  border-color: #0084c9;
}

.input-wrapper.is-error {
  border-color: #a30037;
}

.input-wrapper input {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #292524;
  border: none;
  background: transparent;
  outline: none;
  min-width: 0;
  line-height: 1.2;
}

.input-wrapper input::placeholder {
  color: #a6a09b;
}

.error-text {
  font-size: 14px;
  font-weight: 500;
  color: #a30037;
  line-height: 1.2;
  display: none;
}

.error-text.show {
  display: block;
}

/* ========== Send Button ========== */
.btn-send {
  background-color: #0084c9;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  width: 100%;
  filter: drop-shadow(0px 1px 0px rgba(64, 64, 64, 0.4));
  cursor: pointer;
  transition: filter 0.15s;
}

.btn-send:active {
  filter: brightness(0.92) drop-shadow(0px 1px 0px rgba(64, 64, 64, 0.4));
}

.btn-send .icon-wrap {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-send .btn-label {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  color: #fafaf9;
  text-align: center;
  line-height: 1.2;
}

.btn-send .icon-spacer {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ========== Back Link ========== */
.back-link-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.border-divider {
  width: 100%;
  height: 2px;
  background-color: #cad5e2;
  flex-shrink: 0;
}

.link-text {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  width: 100%;
}

.link-text a {
  font-size: 16px;
  font-weight: 500;
  color: #0069a2;
  text-decoration: underline;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

/* ========== Footer ========== */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 73px;
  padding: 10px;
  width: 100%;
  flex-shrink: 0;
}

.footer p {
  font-size: 12px;
  font-weight: 500;
  color: #a6a09b;
  text-align: center;
  line-height: 1.2;
}
