/* Page - Recruit > Member (matches theme layout: #sec-title, #sec-*) */
#recruit-member {
  background-color: #ffffff;
  overflow-x: hidden;
  position: relative;
  /* max-width: 1280px; */
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent;

  button.btn-primary {
    font-size: 16px;
    padding: 15px 40px;
    background-color: black;
    color: white;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;

    &:hover {
        opacity: 0.9;
        transform: scale(1.05);
    }
  }

  /* sec-title: hero (same pattern as recruit-supporter) */
  #sec-title {
    position: relative;
    min-height: 480px;
    padding: 60px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    .hero-visual-1 {
      position: absolute;
      inset: 0;
      pointer-events: none;

      .hero-gradient {
        background: linear-gradient(
          141deg,
          rgb(255, 155, 72) 0%,
          rgb(255, 216, 150) 91%
        );
        border-radius: 300px;
        width: 600px;
        height: 600px;
        position: absolute;
        right: 20%;
        top: 15%;
        transform: translateY(-50%);
        max-width: min(50vw, 600px);
        max-height: min(50vw, 600px);
      }

      .hero-overlay {
        background-color: rgba(255, 255, 255, 0);
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
      }
    }

    .hero-visual-2 {
      position: absolute;
      inset: 0;
      pointer-events: none;

      .hero-gradient {
        background: linear-gradient(
          141deg,
          rgb(255, 155, 84) 0%,
          rgb(255, 212, 163) 91%
        );
        border-radius: 300px;
        width: 500px;
        height: 500px;
        position: absolute;
        right: -2%;
        top: 50%;
        transform: translateY(-50%);
        max-width: min(50vw, 600px);
        max-height: min(50vw, 600px);
      }

      .hero-overlay {
        background-color: rgba(255, 255, 255, 0);
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
      }
    }

    .title-text {
      position: relative;
      z-index: 1;

      h1 {
        color: #000000;
        font-family:
          "Hiragino Kaku Gothic Std W8", "Hiragino Kaku Gothic Std-W8",
          Helvetica, sans-serif;
        font-size: 45px;
        font-weight: 400;
        letter-spacing: 0;
        line-height: 1.2;
        margin: 0 0 20px;
      }

      p {
        color: #000000;
        font-family:
          "Hiragino Kaku Gothic Pro W3", "Hiragino Kaku Gothic Pro-W3",
          Helvetica, sans-serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.75;
        margin: 0;
      }
    }
  }

  #sec-form {
    padding: 40px 70px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    & p {
        margin-bottom: 30px;
        width: 100%;
        line-height: 1.75;
    }
  }

  /* sec-why-join */
  #sec-why-join {
    padding: 30px 70px 80px;

    & h2 {
      font-family: "Bayon", sans-serif;
      font-size: 32px;
      text-decoration: underline;
      text-decoration-color: black;
      text-decoration-thickness: 2px;
      text-decoration-style: dotted;
      text-underline-offset: 10px;
      margin-bottom: 40px;
    }

    .why-join-cards {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      justify-content: center;
      align-items: stretch;
    }

    .card {
      flex: 1 1 280px;
      max-width: 900px;
      border-radius: 10px;
      padding: 30px 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 150px;
    }

    .card-internal {
      background-color: rgba(255, 97, 0, 0.8);
    }

    .card-external {
      background-color: rgba(255, 153, 0, 0.8);
    }

    .card-text {
      color: #ffffff;
      font-family:
        "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic ProN-Regular",
        Helvetica, sans-serif;
      font-size: 16px;
      font-weight: 400;
      letter-spacing: 0;
      line-height: 1.75;
      margin: 0;
      text-align: center;

      span {
        color: #ffffff;
        font-family: "Hiragino Kaku Gothic ProN", Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.75;
      }
    }
  }

  /* sec-what-is-member */
  #sec-what-is-member {
    padding: 30px 70px 80px;

    & h2 {
      font-family: "Bayon", sans-serif;
      font-size: 32px;
      text-decoration: underline;
      text-decoration-color: black;
      text-decoration-thickness: 2px;
      text-decoration-style: dotted;
      text-underline-offset: 10px;
      margin-bottom: 40px;
    }

    .content-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;

      .intro-text {
        text-align: center;
        color: #000000;
        font-family: "Hiragino Maru Gothic ProN W4", Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.75;
        margin: 0 auto 45px;
        max-width: 1002px;
      }

      .team-list {
        border: 1px solid #000000;
        padding: 20px;
        margin-bottom: 45px;
        width: 100%;
        max-width: 948px;
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .team-item {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }

      .team-icon {
        background-color: #f79428;
        border-radius: 11px;
        height: 22px;
        width: 22px;
        flex-shrink: 0;
      }

      .team-name {
        color: #000000;
        font-family: "Hiragino Kaku Gothic Pro W6", Helvetica, sans-serif;
        font-size: 18px;
        font-weight: 400;
        flex-shrink: 0;
      }

      .team-desc {
        color: #000000;
        font-family: "Hiragino Kaku Gothic Pro W3", Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.75;
      }
    }
  }

  /* sec-activities */
  #sec-activities {
    padding: 78px 70px 80px;

    & h2 {
      font-family: "Bayon", sans-serif;
      font-size: 32px;
      text-decoration: underline;
      text-decoration-color: black;
      text-decoration-thickness: 2px;
      text-decoration-style: dotted;
      text-underline-offset: 10px;
      margin-bottom: 40px;
    }

    .activities-row {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 24px;
      align-items: stretch;
    }

    .activity-image-wrap {
      cursor: pointer;
      position: relative;
      height: 299px;
      width: 100%;
      max-width: 528px;
      flex: 1 1 300px;
      overflow: hidden;
    }

    .activity-image-wrap:hover .activity-img {
      transform: scale(1.05);
    }

    .activity-placeholder-block {
      background-color: #d9d9d9;
      height: 299px;
      width: 100%;
      max-width: 526px;
      flex: 1 1 300px;
    }

    .activity-img-overlay {
      background: linear-gradient(
        180deg,
        rgba(155, 155, 155, 0.02) 0%,
        rgba(155, 155, 155, 0.3) 100%
      );
      height: 100px;
      position: absolute;
      left: 0;
      bottom: 0;
      right: 0;
    }

    .activity-img {
      height: 299px;
      width: 100%;
      object-fit: cover;
      display: block;
      position: relative;
      transition: transform 0.3s ease;

      &.activity-placeholder {
        background: #d9d9d9;
        height: 299px;
      }
    }

    .activity-label {
      position: absolute;
      left: 50%;
      bottom: 30px;
      transform: translateX(-50%);
      color: #ffffff;
      font-family: "Hiragino Kaku Gothic Pro W3", Helvetica, sans-serif;
      font-size: 20px;
      font-weight: 400;
      text-align: center;
      white-space: nowrap;
      max-width: calc(100% - 24px);
    }
  }

  /* sec-schedule */
  #sec-schedule {
    padding: 78px 70px 80px;

    & h2 {
      font-family: "Bayon", sans-serif;
      font-size: 32px;
      text-decoration: underline;
      text-decoration-color: black;
      text-decoration-thickness: 2px;
      text-decoration-style: dotted;
      text-underline-offset: 10px;
      margin-bottom: 40px;
    }

    .schedule-box {
      border: 1px solid #000000;
      min-height: 300px;
      padding: 24px;

      .schedule-content {
        font-family: "Hiragino Kaku Gothic Pro W3", Helvetica, sans-serif;
        font-size: 16px;
        line-height: 1.75;
      }

      .schedule-placeholder {
        color: #666;
        margin: 0;
      }
    }
  }

  /* sec-info-session */
  #sec-info-session {
    padding: 92px 70px 80px;

    & h2 {
      font-family: "Bayon", sans-serif;
      font-size: 32px;
      text-decoration: underline;
      text-decoration-color: black;
      text-decoration-thickness: 2px;
      text-decoration-style: dotted;
      text-underline-offset: 10px;
      margin-bottom: 40px;
    }

    .pdf-block {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 1em;

      /* PDF embed (WordPress block style): show on desktop; hide on many mobiles */
      .pdf-embed {
        display: block;
        width: 100%;
        min-height: 400px;
        height: 60vh;
        max-height: 600px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        background: #f5f5f5;
        overflow: hidden;
      }

      .pdf-embed-iframe {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 400px;
        border: 0;
      }

      .pdf-link {
        color: #000000;
        border: 1px solid #000000;
        font-family: "Hiragino Maru Gothic ProN W4", Helvetica, sans-serif;
        font-size: 16px;
        font-weight: 400;
        text-align: center;
        text-decoration: none;
        padding: 16px 32px;
        border-radius: 4px;
        flex-shrink: 0;
        width: fit-content;
        align-self: flex-start;
        margin: 0 auto;

        &:hover {
          background-color: #f5f5f5;
        }
      }
    }
  }

  /* Mobile: single breakpoint (desktop = default above this) */
  @media (max-width: 768px) {
    #sec-title {
      min-height: 320px;
      padding: 32px 16px 48px;

      .hero-visual-1 .hero-gradient,
      .hero-visual-2 .hero-gradient {
        width: 200px;
        height: 200px;
      }

      .title-text {
        h1 {
          font-size: 28px;
          margin-bottom: 12px;
        }

        p {
          font-size: 14px;
        }
      }
    }

    #sec-form,
    #sec-why-join,
    #sec-what-is-member,
    #sec-activities,
    #sec-schedule,
    #sec-info-session {
      padding: 24px 16px 48px;

      & h2 {
        font-size: 24px;
        margin-bottom: 24px;
        text-underline-offset: 6px;
      }
    }

    #sec-why-join {
      .why-join-cards {
        flex-direction: column;
        align-items: center;
        justify-content: center;
      }

      .card {
        flex: none;
        width: 100%;
        padding: 32px 16px;
        min-height: 0;
      }

      .card-text,
      .card-text span {
        font-size: 14px;
        line-height: 1.6;
      }
    }

    #sec-what-is-member {
      .content-wrapper {
        .team-list {
          padding: 16px;
        }

        .team-name {
          font-size: 16px;
        }

        .team-desc {
          font-size: 14px;
        }

        .intro-text {
          font-size: 14px;
          margin-bottom: 32px;
        }

        .team-icon {
          height: 18px;
          width: 18px;
        }
      }
    }

    #sec-activities {
      padding: 24px 16px 48px;

      .activity-placeholder-block {
        display: none;
      }

      .activity-image-wrap {
        max-width: 100%;
        height: 200px;
      }

      .activity-img,
      .activity-img.activity-placeholder {
        height: 200px;
      }

      .activity-label {
        font-size: 16px;
        white-space: normal;
        padding: 0 12px;
        bottom: 16px;
      }
    }

    #sec-schedule {
      .schedule-box {
        padding: 16px;
        min-height: auto;

        .schedule-content {
          font-size: 14px;
        }
      }
    }

    #sec-info-session {
      .pdf-block {
        .pdf-embed {
          display: none;
        }

        .pdf-link {
          display: inline-block;
          font-size: 15px;
        }
      }
    }
  }
}
