* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Pretendard', sans-serif;
  color: #111;
  background: #f8f8f8;
  line-height: 1.7;
}

section {
  padding: 120px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.hero { text-align: center; }

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.4px;
}

.hero p {
  font-size: 18px;
  color: #555;
}

.boxes {
  display: grid;
  gap: 30px;
  margin-top: 50px;
}

.box {
  padding: 35px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
  font-size: 18px;
}

.description {
  font-size: 18px;
  color: #444;
  max-width: 700px;
  margin: 0 auto;
}

.inline-questions { margin-top: 30px; }

.inline-questions a {
  position: relative;
  display: block;
  margin: 18px 0;
  padding-bottom: 8px;
  color: #444;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

.inline-questions a::after {
  content: "클릭하여 이동";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 13px;
  color: #999;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.25s ease;
}

.m-br { display: none; }
.pc-only { display: inline; }

@media (min-width: 769px) {
  .inline-questions a:hover {
    color: #111;
    border-color: rgba(0,0,0,0.3);
  }

  .inline-questions a:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
}

.subtle-link {
  font-weight: 600;
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.subtle-link:hover {
  border-color: rgba(0,0,0,0.35);
  color: #000;
}

@media (max-width: 768px) {
  body { background: #f7f7f7; }
  section { padding: 90px 0; }

  .hero h1 {
    font-size: 32px;
    padding: 0 18px;
  }

  .hero p,
  .description {
    font-size: 19px;
    padding: 0 18px;
  }

  .boxes { padding: 0 18px; }
  .box { box-shadow: 0 8px 20px rgba(0,0,0,0.04); }
  .inline-questions { padding: 0 18px; }

  .inline-questions a {
    background: #ffffff;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.05);
  }

  .inline-questions a::after {
    opacity: 1;
    transform: none;
    position: static;
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #aaa;
  }

  .inline-questions a:active {
    transform: scale(0.97);
    background: #f0f0f0;
  }

  .m-br { display: inline; }
  .pc-only { display: none; }
}

.container { padding: 12px; }

.guide {
  font-size: 13px;
  color: #444;
  text-align: center;
  margin-bottom: 10px;
}

.scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
  padding-top: 15px;
  padding-left: calc(50vw - 70px);
  padding-right: calc(50vw - 70px);
  background: #f8f8f8;
}

@media (min-width: 768px) {
  .scroll {
    gap: 36px;
    padding-left: calc(50vw - 90px);
    padding-right: calc(50vw - 90px);
  }

  .card { flex: 0 0 180px; }
}

.scroll::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 140px;
  aspect-ratio: 3 / 4;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 10px;
  position: relative;
  scroll-snap-align: center;
  overflow: hidden;
  transition: transform 0.2s ease;
  transform-origin: center center;
}

.card:active { transform: scale(0.95); }
.card:active { transform: scale(0.95); }

.text-layer {
  position: relative;
  width: 100%;
  height: 100%;
}

.line {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 11px;
  color: #222;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.card.open .text-layer { filter: brightness(0.5) blur(0.5px); }
.card.open .overlay { opacity: 1; }