/* 태블릿 / 모바일: style.css 다음에 불러옵니다. */
@media (max-width: 1100px) {
    .nav { gap: 18px; }
    .nav nav { gap: 16px; }
    .brand b { font-size: 21px; }
    .header-call { display: none; }
    .two { gap: 40px; }
    .trust-grid > div { gap: 10px; padding: 0 10px; }
    .trust-grid b { font-size: 14px; }
    .ph-trust-icon { flex-basis: 42px; width: 42px; height: 42px; }
    .ac-service-card { padding: 28px; }
    .ac-service-card h3 { font-size: 23px; }
    .cta__inner { gap: 25px; }
    .cta__contact a { font-size: 25px; padding: 18px 24px; }
}

@media (max-width: 900px) {
    .container { padding-left: 24px; padding-right: 24px; }
    .nav nav { display: none; }
    .menu { display: block; position: relative; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid #dce7f2; border-radius: 10px; background: #fff; color: #133d70; font-size: 0; cursor: pointer; }
    .menu::before, .menu::after { content: ''; position: absolute; left: 11px; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
    .menu::before { top: 14px; box-shadow: 0 6px 0 currentColor; }
    .menu::after { top: 26px; }
    .open .nav nav { display: flex; position: absolute; z-index: 50; top: 100%; left: 0; right: 0; align-items: stretch; flex-direction: column; gap: 0; margin: 0; padding: 12px 24px 18px; background: #fff; border-top: 1px solid #e2eaf4; box-shadow: 0 15px 25px #0e325b12; max-height: calc(100dvh - 110px); overflow-y: auto; }
    .open .nav nav a { min-height: 46px; padding: 12px 8px; border-bottom: 1px solid #eff3f7; font-size: 14px; }
    .open .nav nav a:last-child { border-bottom: 0; }
    .hero-bottom__inner { gap: 12px; padding-top: 18px; padding-bottom: 18px; }
    .hero-bottom p { max-width: 290px; font-size: 13px; }
    .hero-actions .btn { padding: 12px 16px; }
    .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; padding-top: 30px; padding-bottom: 30px; }
    .trust-grid > div { justify-content: flex-start; gap: 15px; padding: 0 25px; }
    .trust-grid > div:first-child { padding-left: 25px; }
    .trust-grid > div:nth-child(2) { border: 0; }
    .trust-grid b { font-size: 16px; }
    .two { gap: 32px; }
    .about-summary { padding: 28px; }
    .stats { gap: 10px; }
    .stats > div { padding: 18px 12px; }
    .stats b { font-size: 28px; }
    .stats b span { font-size: 11px; }
    .about-summary h3 { font-size: 25px; }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .process-item::after { display: none; }
    .cta__inner { flex-direction: column; text-align: center; gap: 32px; }
    .cta__contact a { font-size: 29px; }
}

@media (max-width: 767px) {
    html { scroll-padding-top: 88px; }
    body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
    .container { padding-left: 20px; padding-right: 20px; }
    .topin { min-height: 30px; font-size: 10px; }
    .header { height: 74px; }
    .nav { gap: 10px; }
    .brand { gap: 8px; min-width: 0; }
    .brandmark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; background-size: 29px 29px; }
    .brand b { font-size: clamp(17px, 5vw, 21px); letter-spacing: -1px; }
    .brand small { margin-top: 3px; font-size: 10px; letter-spacing: 0; }
    .header .brand.ph-site-brand, header .brand.ph-site-brand { --ph-logo-width: 46px; gap: 8px; }
    .ph-site-brand .ph-brand__copy > b { font-size: clamp(17px, 4.8vw, 21px); }
    .ph-site-brand .ph-brand__copy > small { font-size: 10px; }
    .menu { flex: 0 0 42px; width: 42px; height: 42px; }
    .menu::before, .menu::after { left: 10px; }
    .home-hero__link img { aspect-ratio: 1086 / 1448; }
    .hero-bottom__inner { display: block; min-height: 0; padding-top: 18px; padding-bottom: 18px; }
    .hero-bottom p { display: block; max-width: none; text-align: center; font-size: 12px; }
    .hero-bottom p strong { display: inline; }
    .status-dot { margin-right: 7px; width: 6px; height: 6px; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 15px; gap: 9px; }
    .hero-actions .btn { width: 100%; padding: 12px 10px; min-height: 46px; font-size: 13px; }
    .trust-grid { gap: 22px 0; padding-top: 26px; padding-bottom: 26px; }
    .trust-grid > div, .trust-grid > div:first-child { gap: 9px; padding: 0 12px; align-items: flex-start; }
    .trust-grid > div:nth-child(odd) { padding-left: 0; }
    .trust-grid > div:nth-child(even) { padding-right: 0; }
    .ph-trust-icon { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; }
    .ph-trust-icon svg { width: 20px; height: 20px; }
    .trust-grid b { font-size: 13px; letter-spacing: -.4px; }
    .trust-grid div > span:not(.ph-trust-icon) { font-size: 10px; line-height: 1.75; }
    .section { padding: 64px 0; scroll-margin-top: 10px; }
    .section h2 { font-size: 28px; line-height: 1.45; letter-spacing: -1.2px; margin: 12px 0 15px; }
    .label { font-size: 10px; letter-spacing: 1.8px; }
    .section-heading { margin-bottom: 28px; }
    .section-heading p, .lead { font-size: 13px; line-height: 1.85; }
    .two { grid-template-columns: minmax(0, 1fr); gap: 35px; }
    .checklist { margin-top: 27px; gap: 21px; }
    .checklist b { font-size: 14px; }
    .checklist li div > span { font-size: 12px; }
    .about-summary { padding: 26px; border-radius: 20px; }
    .about-summary__caption { font-size: 12px; }
    .about-summary h3 { margin: 12px 0 25px; font-size: 25px; }
    .stats > div { padding: 18px 16px; }
    .stats b { font-size: 31px; }
    .stats b span { font-size: 12px; }
    .stats > div > span { font-size: 11px; }
    .about-summary__note { font-size: 11px; }
    .ac-service-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .ac-service-card { padding: 26px; border-radius: 18px; }
    .ac-service-card__top { gap: 12px; margin-bottom: 20px; }
    .ac-service-card h3 { font-size: 23px; letter-spacing: -.9px; white-space: normal; }
    .ac-service-card p { font-size: 13px; margin-bottom: 21px; }
    .ac-service-card ul { gap: 9px; margin-bottom: 26px; }
    .ac-service-card li { font-size: 13px; }
    .ac-service-button { min-height: 50px; }
    .items { margin-top: 18px; padding: 24px 20px; border-radius: 18px; }
    .items__heading { margin-bottom: 17px; }
    .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .detail-list span { padding: 10px 4px; font-size: 12px; }
    .section-heading--row { display: block; }
    .section-heading--row p { margin-top: 12px; }
    .section-heading--row p br { display: none; }
    .gallery-grid { gap: 16px; }
    .gallery-card { border-radius: 12px; }
    .gallery-card img { aspect-ratio: 4 / 3; font-size: 11px; }
    .gallery-card figcaption { padding: 12px; font-size: 11px; }
    .gallery-card figcaption b { font-size: 10px; }
    .process-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .process-item { display: flex; align-items: center; gap: 20px; padding: 25px 23px; text-align: left; border-radius: 14px; }
    .ph-process-icon { margin: 0; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 15px; }
    .process-badge { left: auto; right: 17px; top: 15px; font-size: 10px; }
    .process-item h3 { margin: 0 0 6px; padding-right: 20px; font-size: 16px; }
    .process-item p { font-size: 12px; line-height: 1.7; }
    .cta { padding: 55px 0; }
    .cta__inner { gap: 28px; }
    .cta__label { font-size: 11px; }
    .cta h2 { font-size: 27px; letter-spacing: -1px; }
    .cta p { font-size: 12px; }
    .cta__contact { width: 100%; max-width: 390px; }
    .cta__contact a { gap: 12px; width: 100%; min-height: 66px; padding: 15px; font-size: clamp(24px, 6.8vw, 30px); }
    .cta__contact a svg { width: 23px; height: 23px; flex-basis: 23px; }
    .cta__contact > span { font-size: 11px; }
    .mobile-contact { position: fixed; z-index: 60; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 2.15fr; gap: 9px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #dce6f1; box-shadow: 0 -5px 22px #1439680d; }
    .mobile-contact a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 50px; border-radius: 10px; color: #315277; background: #edf3fa; font-size: 12px; font-weight: 700; text-decoration: none; }
    .mobile-contact svg { width: 18px; height: 18px; flex: 0 0 18px; }
    .mobile-contact .mobile-contact__call { color: #fff; background: var(--blue); }
    .mobile-contact__call span { text-align: center; font-size: 10px; line-height: 1.5; }
    .mobile-contact__call b { display: block; font-size: 15px; letter-spacing: -.3px; }
    .home-page ~ .floating-call, body:has(.home-page) .floating-call { display: none; }
    .floating-call { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
    .foot { flex-direction: column; gap: 20px; padding-top: 30px; padding-bottom: 30px; }
    .foot b { font-size: 16px; }
    .foot p { font-size: 11px; }
    .foot a { font-size: 21px; }
    .copyright { padding: 15px 20px; font-size: 10px; }
    .subpage { margin: 35px 20px; }
    .pagehead { flex-wrap: wrap; }
    .form, .post { padding: 22px; }
    .form input, .form textarea, .search input { font-size: 16px; }
    .tr { grid-template-columns: 40px minmax(0, 1fr) 65px; padding: 12px 8px; font-size: 12px; }
    .tr span:nth-child(4), .tr span:nth-child(5) { display: none; }
    .notice-box a { padding: 15px; font-size: 13px; }
}

@media (max-width: 359px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .brand b { font-size: 17px; }
    .brandmark { width: 34px; height: 34px; flex-basis: 34px; background-size: 25px; }
    .brand small { font-size: 9px; }
    .header .brand.ph-site-brand, header .brand.ph-site-brand { --ph-logo-width: 42px; gap: 7px; }
    .ph-site-brand .ph-brand__copy > b { font-size: 17px; }
    .ph-site-brand .ph-brand__copy > small { font-size: 9px; }
    .trust-grid > div, .trust-grid > div:first-child { gap: 7px; }
    .ph-trust-icon { width: 30px; height: 30px; flex-basis: 30px; }
    .trust-grid b { font-size: 12px; }
    .section h2 { font-size: 25px; }
    .about-summary { padding: 21px; }
    .stats > div { padding: 16px 10px; }
    .stats b { font-size: 28px; }
    .ac-service-card { padding: 22px; }
    .ac-service-card h3 { font-size: 21px; }
    .gallery-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-bottom p { font-size: 11px; }
    .mobile-contact { gap: 7px; padding-left: 10px; padding-right: 10px; }
    .mobile-contact a { font-size: 11px; }
}
