/* 페이지 기본 스타일 */
:root {
  --color-primary: #272B2A;
  --color-primary-hover: #171A19;
  --color-background: #f2f2f2;
  --color-surface: #fafafa;
  --color-surface-hover: #f0f0f0;
  --color-border: #d8dad9;
  --color-border-strong: #adb1af;
  --color-text-muted: #626765;
  --color-heading: #454a48;
  --color-placeholder: #e5e7e6;
}

html {
  color-scheme: light;
  background: var(--color-background);
  color: var(--color-primary);
  font-family: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  word-break: keep-all;
}

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

body, h1, figure, dl, dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

/* 모바일 기본 스타일 */

/* 상단 로고 */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 596px;
  min-height: 66px;
  margin: 0 auto;
  padding: 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img { 
  display: block;
  width: 200px;
  height: auto;
}

/* 첫 화면 */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 596px;
  margin: -66px auto 0;
  padding-bottom: 66px;
}

/* 전화번호와 연락 버튼 */
.contact {
  position: relative;
  top: 20px;
  z-index: 1;
  grid-area: 1 / 1;
  align-self: end;
  margin: 0 20px -24px;
  scroll-margin-top: 20px;
}

.contact h1 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-heading);
  font-size: 20px;
  font-weight: 620;
}

/* .contact h1::before {
  color: var(--color-primary);
  font-family: 'Segoe UI Symbol', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  content: '☎︎' / '';
} */

.phone-number {
  display: inline-block;
  margin: 4px 0 14px;
  font-size: 34px;
  font-weight: 810;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  letter-spacing: -.052em;
  white-space: nowrap;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 368px;
}

.contact-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 7px;
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  background: var(--color-background);
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 740;
}

.contact-action[href^="tel:"] {
  background: var(--color-primary);
  color: #fff;
}

.contact-action svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 모바일에서는 사진을 로고와 연락처 뒤에 깔고 아래만 밝게 이어줍니다. */
.taxi-photo {
  position: relative;
  grid-area: 1 / 1;
  aspect-ratio: 491 / 588;
  overflow: hidden;
}

.taxi-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 54%, rgb(242 242 242 / 85%) 80%, var(--color-background) 100%);
  content: '';
  pointer-events: none;
}

.taxi-photo picture {
  display: block;
  height: 100%;
}

.taxi-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 47%;
}

/* 사진 아래 운행 안내 목록 */
.service-checklist {
  display: grid;
  width: calc(100% - 36px);
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 0;
  list-style: none;
}

.service-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 4px;
  border-top: 1px solid var(--color-border);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.service-checklist svg {
  flex: none;
  width: 23px;
  height: 23px;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 하단 사업자 정보 */
.business {
  max-width: 596px;
  margin: 0 auto;
  padding: 21px 18px;
  padding-bottom: calc(21px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.business dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.business dl > div {
  display: flex;
  gap: 6px;
}

.business dd {
  color: var(--color-primary);
}

.contact-action:hover {
  background: var(--color-surface-hover);
}

.contact-action[href^="tel:"]:hover {
  background: var(--color-primary-hover);
}

/* PC */
@media (min-width: 785px) {
  .site-header {
    justify-content: flex-start;
    max-width: 1168px;
    min-height: 80px;
    padding: 0 24px;
  }

  .brand img {
    width: 250px;
  }

  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    width: calc(100% - 48px);
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 0;
  }

  .contact {
    top: auto;
    grid-area: auto;
    align-self: auto;
  }

  .phone-number {
    font-size: 48px;
  }

  .taxi-photo {
    grid-area: auto;
    aspect-ratio: 1.03;
    border-radius: 24px;
    background: var(--color-placeholder);
  }

  .taxi-photo::after {
    display: none;
  }

  .taxi-photo img {
    object-position: 50% 46%;
  }

  .service-checklist {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    width: calc(100% - 48px);
    max-width: 1120px;
  }

  .business {
    max-width: 1168px;
    padding-left: 24px;
    padding-right: 24px;
  }
}
