/* 디자인 파일입니다. 글을 고칠 때는 이 파일을 열 필요가 없습니다. */

:root {
  /* 색: 크림 + 올리브. 여기만 바꾸면 전체 색이 바뀝니다. */
  --cream: #f6f0e1;
  --olive: #545c34;
  --olive-dark: #3f4626;
  --white: #fffdf7;
  --sand: #e8e1cb;
  --muted: #66654f;
  --olive-light: #e2e3c9;

  --bar-space: calc(88px + env(safe-area-inset-bottom, 0px));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--olive-dark);
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.5;
  word-break: keep-all;
  padding-bottom: var(--bar-space);
}

/* ===== 1. 맨 위 화면 ===== */
.hero {
  position: relative;
  height: calc(100vh - var(--bar-space));
  height: calc(100svh - var(--bar-space));
  min-height: 420px;
  overflow: hidden;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 글자가 잘 보이도록 사진 아래쪽을 살짝 어둡게 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(24, 28, 12, 0.78) 0%,
    rgba(24, 28, 12, 0.45) 24%,
    rgba(24, 28, 12, 0) 50%);
}

.hero-text {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 24px 36px;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-place {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-name {
  font-size: clamp(2.25rem, 10.5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-intro {
  font-size: clamp(1.125rem, 4.8vw, 1.5rem);
  margin-top: 8px;
}

/* ===== 공통: 구역 ===== */
.section {
  padding: 64px 20px;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 10px;
  font-size: 1.0625rem;
}

/* ===== 2. 이용 안내 ===== */
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 28px;
  list-style: none;
  text-align: center;
}

.week li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border: 2px solid transparent;
  border-radius: 12px;
}

.week .day {
  font-size: 1.125rem;
  font-weight: 800;
}

.week .state {
  font-size: clamp(0.8125rem, 3.8vw, 0.9375rem);
  font-weight: 600;
  white-space: nowrap;
}

.week .open {
  background: var(--olive);
  color: var(--white);
}

.week .leave {
  background: var(--white);
  border-color: var(--olive);
}

.week .closed {
  background: var(--sand);
  color: var(--muted);
}

.notes {
  margin-top: 16px;
  list-style: none;
}

.cards {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.card {
  padding: 22px 20px 8px;
  border-radius: 18px;
  background: var(--white);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--olive);
}

.card dl > div {
  padding: 14px 0;
}

.card dl > div + div {
  border-top: 1px solid var(--sand);
}

.card dt {
  font-size: 1rem;
}

.card dd strong {
  font-size: 1.375rem;
  font-weight: 800;
}

.card dd small {
  margin-left: 8px;
  font-size: 1rem;
  color: var(--muted);
}

.more {
  margin-top: 14px;
  border-radius: 18px;
  background: var(--white);
}

.more summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 14px 20px;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary::after {
  content: "＋";
  font-size: 1.25rem;
}

.more[open] summary::after {
  content: "－";
}

.more ul {
  padding: 0 20px 18px 38px;
}

.more li + li {
  margin-top: 8px;
}

/* ===== 3. 인원·요금 안내 ===== */
.section-olive {
  background: var(--olive-light);
}

.block-title {
  margin: 36px 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
}

.fee {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  text-align: center;
}

.fee th,
.fee td {
  padding: 16px 6px;
}

.fee thead th {
  background: var(--olive);
  color: var(--white);
  font-weight: 700;
}

.fee tbody th {
  font-size: 1.125rem;
  font-weight: 800;
}

.fee td {
  font-size: 1.125rem;
  font-weight: 700;
  white-space: nowrap;
}

.fee tbody tr + tr {
  border-top: 1px solid var(--sand);
}

.fee-note {
  margin-top: 8px;
}

.base {
  padding: 26px 20px;
  border-radius: 18px;
  background: var(--olive);
  color: var(--white);
  text-align: center;
}

.base-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 1.5rem;
}

.base-icons svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.base-main {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 800;
}

.base-sub {
  font-size: 1.1875rem;
  font-weight: 700;
}

.base ul {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 253, 247, 0.35);
  list-style: none;
}

.examples {
  list-style: none;
}

.examples li {
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--white);
}

.examples li + li {
  margin-top: 10px;
}

.examples li > span {
  display: block;
}

.nowrap {
  white-space: nowrap;
}

.examples strong {
  display: block;
  margin-top: 4px;
  font-size: 1.375rem;
  font-weight: 800;
}

.card.rule {
  padding: 20px;
}

.rule-main {
  font-size: 1.125rem;
  font-weight: 800;
}

.rule-sub {
  margin-top: 6px;
  color: var(--muted);
}

.rule ul {
  margin-top: 14px;
  padding: 14px 0 0 18px;
  border-top: 1px solid var(--sand);
}

.rule li + li {
  margin-top: 8px;
}

.more.refund {
  margin-top: 36px;
}

.refund-body {
  padding: 0 20px 20px;
}

.refund-grid {
  display: grid;
  gap: 16px;
  margin: 14px 0;
}

.refund-grid table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.refund-grid caption {
  padding-bottom: 6px;
  border-bottom: 2px solid var(--olive);
  font-weight: 800;
  text-align: left;
}

.refund-grid th,
.refund-grid td {
  padding: 9px 0;
  border-bottom: 1px solid var(--sand);
}

.refund-grid th {
  font-weight: 500;
}

.refund-grid td {
  font-weight: 700;
  text-align: right;
}

.more .refund-body ul {
  padding: 0 0 0 18px;
}

/* ===== 4. 사이트·시설 ===== */
.plain-card {
  padding: 18px 20px 18px 38px;
  border-radius: 18px;
  background: var(--white);
}

.plain-card li + li {
  margin-top: 8px;
}

.sites {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

.site-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
}

.site-card img {
  display: block;
  width: 100%;
  height: auto;
}

.site-body {
  padding: 18px 20px 20px;
}

.site-body h3 {
  padding-bottom: 8px;
  border-bottom: 2px solid var(--olive);
  font-size: 1.375rem;
  font-weight: 800;
}

.site-body ul {
  margin-top: 12px;
  padding-left: 18px;
}

.site-body li + li {
  margin-top: 6px;
}

.facilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  text-align: center;
}

.facilities li {
  padding: 16px 4px;
  border-radius: 14px;
  background: var(--olive-light);
  font-weight: 700;
}

.facilities .wide {
  grid-column: 1 / -1;
}

/* ===== 5. 사계절 ===== */
.season-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
  list-style: none;
}

.season-grid figure {
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
}

.season-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.season-grid figcaption {
  padding: 10px 8px;
  font-weight: 800;
  text-align: center;
}

/* ===== 6. 장박 안내 ===== */
.long-notes {
  margin-top: 28px;
}

.card.sms-card {
  padding: 22px 20px;
}

.sms-form {
  margin-top: 14px;
  padding: 16px 18px;
  border: 2px dashed var(--olive);
  border-radius: 14px;
  list-style: none;
  font-weight: 600;
}

.sms-form li + li {
  margin-top: 4px;
}

/* 맨 아래 "예약하기"와 구분되도록 테두리만 있는 버튼 */
.sms-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 18px;
  border: 2px solid var(--olive);
  border-radius: 999px;
  color: var(--olive-dark);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.sms-button:focus-visible {
  outline: 3px solid var(--olive-dark);
  outline-offset: 3px;
}

.sms-number {
  margin-top: 10px;
  font-weight: 700;
  text-align: center;
}

.long-other {
  margin-top: 20px;
  font-weight: 700;
  text-align: center;
}

/* ===== 7. 예약 방법 ===== */
.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--white);
  counter-increment: step;
}

.steps li + li {
  margin-top: 8px;
}

.steps li::before {
  content: counter(step);
  flex: 0 0 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  font-weight: 800;
  line-height: 34px;
  text-align: center;
}

.rename-number {
  display: block;
  margin-top: 4px;
  font-weight: 800;
}

.open-day {
  padding: 20px;
  border-radius: 18px;
  background: var(--olive);
  color: var(--white);
  text-align: center;
}

.open-main {
  margin-bottom: 6px;
  font-size: 1.375rem;
  font-weight: 800;
}

.more a {
  display: inline-block;
  padding: 11px 2px;
  margin: -6px 0;
  color: var(--olive-dark);
  font-weight: 700;
}

/* 링크로 이동했을 때 제목이 화면 끝에 붙지 않게 */
#refund {
  scroll-margin-top: 16px;
}

.cafe-card {
  margin-top: 36px;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

.outline-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 16px;
  border: 2px solid var(--olive);
  border-radius: 999px;
  color: var(--olive-dark);
  text-decoration: none;
}

.outline-button:focus-visible {
  outline: 3px solid var(--olive-dark);
  outline-offset: 3px;
}

/* ===== 8. 오시는 길 · 하단 ===== */
.address {
  margin-top: 20px;
  padding: 20px;
  border-radius: 18px;
  background: var(--white);
  font-size: 1.1875rem;
  font-weight: 800;
  text-align: center;
}

.map-buttons {
  display: grid;
  gap: 4px;
}

.map-buttons .outline-button {
  background: var(--white);
  font-weight: 700;
}

.site-footer {
  padding: 40px 20px;
  background: var(--olive-dark);
  color: var(--white);
  text-align: center;
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 800;
}

.site-footer ul {
  margin-top: 12px;
  list-style: none;
}

.site-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--white);
  text-underline-offset: 4px;
}

/* ===== 화면 아래 고정 예약 버튼 ===== */
.book-bar {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bar-space);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--cream);
}

.book-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--olive);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.book-button:hover,
.book-button:active {
  background: var(--olive-dark);
}

.book-button:focus-visible {
  outline: 3px solid var(--olive-dark);
  outline-offset: 3px;
}

/* ===== 넓은 화면(PC) ===== */
@media (min-width: 900px) {
  .hero-text {
    padding: 0 max(48px, calc((100% - 1100px) / 2)) 56px;
  }

  .hero-place {
    font-size: 1.375rem;
  }

  .hero-name {
    font-size: 4.75rem;
  }

  .hero-intro {
    font-size: 1.875rem;
  }

  .section {
    padding: 96px 24px;
  }

  .wrap-wide {
    max-width: 1100px;
  }

  .season-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .cards,
  .sites {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
