/* 큰 데스크톱: 화면 비율상 겹치는 CONTACT 로고만 숨깁니다. */
@media (max-width: 1850px){
  .bojagi_logo {
    display: none;
  }
}

/* 데스크톱 */
@media (max-width: 1400px) {
  .contact_content {
    width: 48%;
  }

  .flower_lock {
    width: 24%;
  }

  .footer_story {
    left: 4%;
  }

  .footer_social {
    right: 10%;
  }

  .footer_copyright {
    left: 4%;
  }
}

/* 작은 데스크톱 */
@media (max-width: 1210px) {
  .contact_content {
    width: 55%;
  }

  .contact_content h1 {
    font-size: 4.5vw;
  }

  .flower_lock {
    width: 27%;
  }

  .footer_story strong {
    font-size: 2vw;
  }

  .footer_social {
    right: 8%;
  }

}

/* 태블릿 가로 */
@media (max-width: 960px) {
  .footer_page::before {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 90%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 90%,
      transparent 100%
    );
  }

  .contact_content {
    width: 64%;
  }

  .contact_content h1 {
    font-size: 5.2vw;
  }

  .contact_form label span {
    font-size: 18px;
  }

  .flower_lock {
    width: 32%;
  }

  .footer_story {
    top: 73%;
  }

  .footer_story p {
    font-size: 12px;
  }

  .footer_story strong {
    font-size: 20px;
  }

  .footer_social {
    top: 73%;
    right: 6%;
    gap: 10px;
    min-width: 160px;
  }

  .footer_social a {
    gap: 10px;
    font-size: 15px;
    line-height: 22px;
  }

  .footer_social i {
    width: 22px;
    font-size: 19px;
  }

  .footer_scroll_guide img,
  .page_scroll_guide img {
    width: 28px;
  }

  .footer_copyright {
    font-size: 10px;
  }

  .about_content {
    right: 0;
    width: 40%;
  }

  .about_content h2 {
    font-size: 4vw;
  }

  .about_message {
    font-size: clamp(18px, 2.1vw, 22px);
  }
}

/* 태블릿 세로 */
@media (max-width: 768px) {
  html,
  body {
    overscroll-behavior-y: none;
  }

  body {
    background: #eeeae1;
  }

  .bojagi_contact {
    height: 100svh;
    min-height: 100svh;
  }

  .flower_lock {
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.18)) !important;
    -webkit-filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.18)) !important;
  }

  .about_content {
    top: 10%;
    right: 7%;
    left: 7%;
    width: auto;
    text-align: center;
  }

  .about_content h2 {
    font-size: clamp(28px, 5vw, 38px);
  }

  .about_message_area {
    margin-top: 5%;
  }

  .about_message {
    font-size: clamp(15px, 2.4vw, 18px);
  }

  .ink_transition_content {
    width: 86%;
  }

  .ink_transition_content h2 {
    font-size: 5vw;
  }

  .ink_transition_content > p {
    font-size: 2.2vw;
  }

  .contact_content {
    width: 78%;
  }

  .contact_content h1 {
    margin-bottom: 28px;
    font-size: 6.2vw;
  }

  .contact_form {
    gap: 14px;
  }

  .contact_form textarea {
    min-height: 100px;
  }

  .flower_lock {
    width: 40%;
  }

}

/* 760px 이하 COPY: 나무 전체와 하단 정보를 세로 흐름으로 정리합니다. */
@media (max-width: 760px) {
  .footer_border_line {
    top: 48%;
    right: 6%;
    left: 6%;
  }

  .footer_story {
    top: 54%;
    left: 50%;
    width: 88%;
    gap: 12px;
    text-align: center;
    transform: translateX(-50%);
  }

  .footer_story strong {
    font-size: clamp(16px, 3.2vw, 20px);
  }

  .footer_social {
    top: 67%;
    right: auto;
    left: 50%;
    display: flex;
    justify-content: center;
    width: 94%;
    min-width: 0;
    transform: translateX(-50%);
  }

  .footer_social a {
    gap: 7px;
    font-size: clamp(11px, 2vw, 14px);
  }

  .footer_copyright {
    bottom: 12%;
    left: 50%;
    white-space: nowrap;
    transform: translateX(-50%);
  }
}

/* 모바일 */
@media (max-width: 480px) {
  .about_person {
    transform: translate3d(0, 10%, 0);
  }

  .footer_story {
    gap: 10px;
  }

  .footer_story p {
    font-size: 10px;
  }

  .footer_story strong {
    font-size: 16px;
    line-height: 1.45;
  }

  .footer_social {
    gap: 9px;
  }

  .footer_social a {
    gap: 8px;
    font-size: 13px;
    line-height: 20px;
  }

  .footer_social i {
    width: 18px;
    font-size: 17px;
  }

  .footer_scroll_guide,
  .page_scroll_guide {
    bottom: 3%;
  }

  .footer_scroll_guide span,
  .page_scroll_guide span {
    font-size: 9px;
  }

  .footer_scroll_guide img,
  .page_scroll_guide img {
    width: 26px;
  }

  .footer_copyright {
    font-size: 9px;
  }

  .ink_transition_content {
    width: 86%;
    word-break: keep-all;
  }

  .ink_transition_content br {
    display: none;
  }

  .ink_transition_content h2 {
    margin: 0 auto 26px;
    font-size: clamp(29px, 7.5vw, 36px);
    line-height: 1.35;
  }

  .ink_intro_content {
    width: 88%;
    text-align: center;
  }

  .ink_intro_content h2 {
    max-width: 400px;
    text-align: center;
  }

  .ink_intro_content > p {
    max-width: 390px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .ink_intro_content > p + p {
    margin-top: 18px;
  }

  .ink_ending_content h2 span,
  .ink_ending_content > p span {
    display: block;
  }

  .ink_transition_content > p {
    font-size: clamp(14px, 3.6vw, 17px);
    line-height: 1.75;
  }

  .ink_ending_content {
    width: 84%;
  }

  .ink_ending_content h2 {
    max-width: 390px;
  }

  .ink_ending_content > p {
    max-width: 360px;
    margin: 0 auto;
    font-size: clamp(15px, 3.8vw, 18px);
    line-height: 1.8;
  }

  .contact_content {
    width: 88%;
  }

  .contact_content h1 {
    margin-bottom: 24px;
    font-size: 8vw;
  }

  .contact_form label span {
    font-size: 16px;
  }

  .contact_form textarea {
    min-height: 80px;
  }

  .contact_submit_button {
    width: 42%;
  }

  .flower_lock {
    width: 52%;
  }

  .about_page {
    background: #eee6d5;
  }

  .about_content h2 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .about_message_area {
    gap: 12px;
    margin-top: 8%;
  }

  .about_message {
    font-size: clamp(14px, 3.8vw, 17px);
  }
}

/* 최소 모바일 */
@media (max-width: 320px) {
  .footer_story {
    width: 92%;
  }

  .footer_story strong {
    font-size: 15px;
  }

  .footer_social {
    width: 96%;
    gap: 6px;
  }

  .footer_scroll_guide img,
  .page_scroll_guide img {
    width: 24px;
  }

  .footer_copyright {
    font-size: 8px;
  }

  .contact_content {
    width: 92%;
  }

  .contact_content h1 {
    margin-bottom: 20px;
    font-size: 9vw;
  }

  .contact_form {
    gap: 10px;
  }

  .contact_form input,
  .contact_form textarea {
    padding: 8px 4px;
  }

  .contact_form textarea {
    min-height: 70px;
  }

  .contact_submit_button {
    width: 48%;
  }

  .flower_lock {
    width: 60%;
  }

}
