/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
}

/* h1 중앙 상단 고정 */
h1 {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: Courier New;
  font-size: 13pt;
  font-weight: 500;
  z-index: 1500;
}

.no-link-style {
  text-decoration: none;
  color: inherit;
}

/* h1 아래 가로선 */
.top-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;     /* h1이 들어갈 공간 + 원래 선 위치 */
  background: white;
  z-index: 1400;
  border-bottom: 1px solid black;
  box-shadow: inset 0 -1px 0 white,  /* 안쪽 흰색 */
              inset 0 -2px 0 black;  /* 바깥 검정 */
}


/* 메뉴 왼쪽 고정 */
.menu {
  position: fixed;
  top: 70px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: "Courier New", monospace;
  z-index: 1200;
}

/* 메뉴 글씨 스타일 */
.menu a {
  font-size: 13px;
  text-decoration: none;
  color: black;
  padding-left: 0;
  margin-left: 0;
}
.menu-bg {
  position: fixed;
  top: 60px;  /* top-line 아래 */
  left: 0;
  width: 120px;  /* 세로선 위치 */
  height: calc(100vh - 70px);
  background: white;
  z-index: 1000; /* 메뉴보다 아래, 콘텐츠보다 위 */
}
/* 메뉴 오른쪽 전체 세로선 */
.menu::after {
  content: "";
  position: fixed;
  top: 60px;  /* top-line 아래 */
  left: 120px;

  width: 3px;                /* ★ 꼭 필요! 줄 너비 */
  height: calc(100vh - 70px);

  background: white;         /* 안쪽 흰색 */

  /* 테두리 효과 */
  box-shadow:
    inset -1px 0 0 black,    /* 오른쪽 검정 테두리 */
    inset -2px 0 0 white,    /* 안쪽 흰색 */
    inset 1px 0 0 black;     /* 왼쪽 검정 테두리 */

  z-index: 1200;
}
/* 메인픽 중앙 정렬 */
.mainpic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-47%, -50%);
  width: 1500px;
  height: auto;
  z-index: -200;
}

/* 기본 이미지 hover (mainpic 제외) */
img:hover {
  opacity: .5;
}

.mainpic:hover {
  opacity: 1 !important;
}
summary::-webkit-details-marker {
  display: initial;
}
summary::-webkit-details-marker {
    display: none;
}
summary {
    list-style: none;
}

/* details는 block으로 */
details {
  width: 100%;
  display: block;
  font-size: 14px;
}


/* 콘텐츠(각 페이지)는 메뉴 오른쪽에서 시작됩니다 */
.content {
  margin-left: 160px;  /* 세로선 오른쪽 공간 */
  padding: 100px 40px;
}
footer {
  font-family: Courier New;
  font-size: 13px;
  position: fixed;
  bottom: 0;
  left: 5px;
  width: 100%;
}

@media screen and (max-width: 704px) {

  /* 기본 정렬 */
  body {
    margin: 0 !important;
    padding: 10px !important;
  }

  /* 제목 */
  h1 {
    top: 5px !important;
    font-size: 12pt !important;
  }

  /* 상단 가로선 */
  .top-line {
    height: 40px !important;
  }

  /* 메뉴를 화면 위쪽 가로로 정렬 */
  .menu {
    top: 45px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;

    flex-direction: row !important;
    justify-content: center !important;

    gap: 15px !important;
    padding: 8px 0 !important;

    background: white !important;
  }

  /* 메뉴 글자 크기 */
  .menu a, 
  .menu summary {
    font-size: 12px !important;
  }

  /* 메뉴 뒤 흰색 박스 제거 */
  .menu-bg {
    display: none !important;
  }

  /* 세로선 제거 */
  .menu::after {
    display: none !important;
  }

  /* content 여백 조정 */
  .content {
    margin: 0 !important;
    padding-top: 100px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* footer 조정 */
  footer {
    font-size: 11px !important;
    left: 10px !important;
    bottom: 10px !important;
  }
}
