/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Variables ===== */
:root {
  --color-primary: #FF8C28;
  --color-primary-dark: #e67a1a;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-gray: #f5f5f5;
  --section-margin-top: 60px;
  --section-padding-x: 3%;
  --header-padding-left: 4%;
  --title-gap: 10px;
  --header-content-gap: 25px;
  --gap: 10px;
  --radius: 10px;
  --font-title: calc(22 / 12 * 1rem);
  --font-subtitle: 1rem;
  --font-card-title: calc(16 / 12 * 1rem);
}

/* ===== Section Header ===== */
[class$="__header"] {
  padding-left: var(--header-padding-left);
  margin-bottom: var(--header-content-gap);
}

[class$="__title"] {
  font-size: var(--font-title);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
}

[class$="__subtitle"] {
  font-size: var(--font-subtitle);
  color: var(--color-text-light);
  margin-top: var(--title-gap);
  line-height: 1.4;
}

/* ===== Section 1: Banner ===== */
.join-banner {
  position: relative;
  width: 100%;
}

.join-banner__img {
  width: 100%;
  height: auto;
  display: block;
}

.join-banner__content {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  padding: 0 8%;
}

.join-banner__title {
  position: relative;
  display: inline-block;
  font-size: calc(28 / 12 * 1rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}

.join-banner__title-icon {
  position: absolute;
  right: 5%;
  top: 5%;
  width: 7rem;
  height: auto;
  max-width: none;
  pointer-events: none;
}

.join-banner__desc {
  font-size: calc(14 / 12 * 1rem);
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Section 2: Philosophy ===== */
.join-philosophy {
  margin-top: var(--section-margin-top);
  padding: 0 var(--section-padding-x);
}

.join-philosophy__body {
  padding-left: var(--header-padding-left);
  padding-right: 2%;
}

.join-philosophy__body p {
  font-size: var(--font-subtitle);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.join-philosophy__body p:last-child {
  margin-bottom: 0;
}

/* ===== Section 3: Form ===== */
.join-form {
  margin-top: var(--section-margin-top);
  padding: 0 var(--section-padding-x);
}

.join-form__subtitle {
  font-weight: 400;
}

.join-form__panel {
  background: #f5f5f5;
  border-radius: 20px;
  padding: 24px 16px;
}

.join-form__form {
  display: block;
}

.join-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.join-form__row:first-child {
  margin-top: 0;
}

.join-form__row--single {
  grid-template-columns: 1fr;
}

.join-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.join-form__field--full {
  grid-column: 1 / -1;
}

.join-form__label {
  font-size: var(--font-subtitle);
  font-weight: 400;
  color: #332c2c;
  line-height: 1.2;
}

.join-form__required {
  color: #332c2c;
}

.join-form__input {
  width: 100%;
  height: 35px;
  background: #54545c;
  color: #333;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 5px 14px 5px 16px;
  font-size: 1rem;
  line-height: 1.35;
  font-family: inherit;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.join-form__input::placeholder {
  color: #999;
  opacity: 1;
}

.join-form__input:not([required]) {
  background: #d4d4d4;
}

.join-form__input:focus {
  outline: none;
  background: #f29035;
  color: #fff;
}

.join-form__input.is-filled {
  background: #f29035;
  color: #fff;
}

.join-form__input.is-error {
  border-color: #e53e3e;
}

.join-form__select {
  background-image: linear-gradient(45deg, transparent 50%, #717784 50%), linear-gradient(135deg, #717784 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 10px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.join-form__textarea {
  height: 100px;
  min-height: 100px;
  resize: none;
  padding: 12px 14px 10px 16px;
  background-color: #d4d4d4;
}

.join-form__textarea.is-filled {
  background-color: #f29035;
  color: #fff;
}

.join-form__upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: left;
  background: #54545c;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
  color: #333;
}

.join-form__upload:hover {
  border-color: var(--color-primary);
}

.join-form__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.join-form__upload-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: calc(12 / 12 * 1rem);
  color: #333;
  line-height: 1.4;
}

.join-form__upload-text-label {
  display: block;
}

.join-form__upload-text svg {
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
  display: block;
}

.join-form__upload-name {
  font-size: calc(12 / 12 * 1rem);
  color: var(--color-primary);
  margin-top: 4px;
  font-weight: 500;
}

.join-form__error {
  font-size: calc(11 / 12 * 1rem);
  color: #e53e3e;
  min-height: 1em;
}

.join-form__actions {
  margin-top: 24px;
}

.join-form__submit {
  display: block;
  width: 60%;
  min-height: 40px;
  margin: 0 auto;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--font-subtitle);
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.join-form__submit:active {
  background: var(--color-primary-dark);
}

.join-form__tip {
  font-size: calc(11 / 12 * 1rem);
  color: #999;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  font-weight: 300;
}

/* ===== Section 4: Channels ===== */
.join-channels {
  margin-top: var(--section-margin-top);
  padding: 0 var(--section-padding-x);
}

.join-channels__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.join-channels__card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 15%;
  border-radius: var(--radius);
  color: #fff;
  aspect-ratio: 360 / 120;
}

.join-channels__card--email {
  background: #677c8f;
}

.join-channels__card--boss {
  background: #66a367;
}

.join-channels__card-icon {
  flex-shrink: 0;
}

.join-channels__card-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.join-channels__card-info {
  flex: 1;
}

.join-channels__card-title {
  font-size: var(--font-card-title);
  font-weight: 600;
  margin-bottom: 5px;
}

.join-channels__card-email {
  font-size: calc(12 / 12 * 1rem);
  opacity: 0.9;
  margin-bottom: 2px;
}

.join-channels__card-desc {
  font-size: calc(11 / 12 * 1rem);
  opacity: 0.8;
}

.join-channels__card-arrow {
  flex-shrink: 0;
}

.join-channels__card-arrow img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

/* ===== Section 5: Culture Accordion ===== */
.join-culture {
  margin-top: var(--section-margin-top);
  padding: 0 var(--section-padding-x);
  padding-bottom: 60px;
}

.join-culture__container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.join-culture__item {
  position: relative;
  z-index: 5;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  transition: z-index 0.25s ease;
}

.join-culture__item:not(:first-child) {
  margin-top: -10px;
}

.join-culture__item.is-expanded {
  z-index: 5;
  border-radius: 15px;
  margin-top: 10px;
}

.join-culture__item.is-final-item {
  margin-top: -10px;
}

.join-culture__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 60px;
  padding: 0 16px;
  border: none;
  color: #fff;
  font-size: calc(18 / 12 * 1rem);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  position: relative;
  z-index: 2;
}

.join-culture__trigger-title {
  flex: 1;
}

.join-culture__trigger-icon {
  flex-shrink: 0;
  height: 80%;
  display: flex;
  align-items: center;
}

.join-culture__trigger-icon img {
  height: 70%;
  width: auto;
  display: block;
}

.join-culture__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.45s ease;
}

.join-culture__item.is-expanded .join-culture__content {
  opacity: 1;
  transform: translateY(0);
}

.join-culture__figure {
  position: relative;
}

.join-culture__image {
  width: 100%;
  display: block;
  aspect-ratio: 2/1;
  object-fit: cover;
}

.join-culture__desc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12%;
  color: #fff;
  font-size: calc(16 / 12 * 1rem);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}