/* 도멜로가 레퍼런스 CSS 위에 더하는 것. 위치, 크기, 여백, 움직임은 레퍼런스 파일(index.*.css)을 그대로 둔다. */

:root { --f-ko: 'GimpoBatang', 'AppleMyungjo', 'Batang', serif; }

/* 한글 예외: 한글 글꼴, 줄바꿈, 최소 글자 크기 */
body { word-break: keep-all; overflow-wrap: break-word; }

.homePhilosophy_description,
.homeProjects_description,
.stickySection_description,
.homeCompany_description,
.stickySection_lead {
  font-family: var(--f-ko);
  letter-spacing: -0.01em;
}
.stickySection_lead { text-align: left; }
/* 하위 페이지(매니페스토, 향)의 한글 자리 */
.philosophyHeader_description,
.ourValuesSubSection_jaTitle,
.ourValuesSubSection_description,
.projectsSubHeader_jaLead,
.craftSection_titleText,
.craftSection_description,
.projectsSubSection_jaTitle,
.projectsSubSection_description,
.contactSection_description {
  font-family: var(--f-ko);
  letter-spacing: -0.01em;
}
@media (min-width: 768px) {
  .homePhilosophy_description,
  .homeProjects_description,
  .stickySection_description,
  .homeCompany_description,
  .philosophyHeader_description,
  .ourValuesSubSection_description,
  .craftSection_description,
  .projectsSubSection_description,
  .contactSection_description { font-size: max(1vw, 16px); }
}
@media (max-width: 767px) {
  .homePhilosophy_description,
  .homeProjects_description,
  .stickySection_description,
  .homeCompany_description,
  .philosophyHeader_description,
  .ourValuesSubSection_description,
  .craftSection_description,
  .projectsSubSection_description,
  .contactSection_description { font-size: max(2.985vw, 15px); }
  .stickySection_lead,
  .projectsSubHeader_jaLead,
  .projectsSubSection_jaTitle { font-size: max(3.98vw, 16px); }
}

/* 레퍼런스는 영어판(html lang=en)일 때만 무드 글을 제목 아래 오른쪽 한 칸에 둔다. 우리는 lang=ko라 그 규칙이 빠져
   글이 왼쪽 사진 밑으로 떨어졌다(11단계 숫자 비교에서 찾음). 같은 값을 언어 조건 없이 다시 적는다.
   영어판의 글 상자 너비 규칙(25~45vw)은 가져오지 않는다. 한글은 줄을 직접 나눴고, 좁은 폭에서 줄이 넘친다. */
@media (min-width: 768px) {
  .projectsSubSection.-craft:nth-of-type(odd) .projectsSubSection_subBlock { grid-template-columns: 1fr; padding-inline-start: 32.5vw; }
}

/* 가치 세 칸: 레퍼런스는 영어 글이 칸(22.5vw)을 다 채워 왼쪽 선이 맞는다. 한글은 줄이 짧아 가운데로 몰리며 칸마다 시작 선이 달라져서 왼쪽에 붙인다 */
@media (min-width: 768px) {
  .ourValuesSubSection { justify-content: start; }
}

/* 로딩과 페이지 넘어갈 때 마우스가 '기다림' 모양으로 바뀌지 않게(사용자 요청 2026-11-22). 레퍼런스는 wait, progress */
html.-wait { cursor: auto !important; }
[aria-busy=true] { cursor: auto; }

/* 메인 매니페스토 제목: PC에서 "the Senses of the Night"를 한 줄로(사용자 요청 2026-11-22).
   레퍼런스는 세 줄이고 셋째 줄을 들여 쓴다. 휴대폰은 한 줄에 안 들어가 세 줄 그대로 */
@media (min-width: 768px) {
  .homePhilosophy .paragraph { display: flex; flex-wrap: wrap; column-gap: clamp(9.4px, .78vw, 14px); }
  .homePhilosophy .paragraph_text:first-child { flex-basis: 100%; }
  .homePhilosophy .paragraph_text.-end { margin-inline-start: 0; }
}

/* 로고: 세로 문장 자리에 가로 워드마크가 들어가 너비만 바꿈 */
.dm-logo { display: block; width: 100%; height: auto; }
@media (min-width: 768px) {
  .header_logo { width: clamp(100px, 8.6vw, 156px); }
  .homeCompany_logo { width: 15vw; }
}
@media (max-width: 767px) {
  .header_logo { width: 30vw; }
  .homeCompany_logo { width: 44vw; }
}

/* 뺀 것: 언어 전환, 두 번째 시계 */
.header_lang { visibility: hidden; pointer-events: none; }
[data-clock="en-clock"] { display: none; }
@media (min-width: 768px) {
  .aside_time:last-of-type, .footer_time:last-of-type { grid-column: 1 / 6; }
}

/* ── 향 노트: 위에서 아래로(세로 한 줄. 레퍼런스의 세 칸 대신, 사용자 요청 2026-11-22) ──
   글자 크기는 레퍼런스의 영어 글자 단계(1.25 / 1.875 / 3.125vw)를 그대로 쓴다. */
.craft_sections.-flow .craftSection_titleText,
.craft_sections.-flow .craftSection_description { font-family: 'Playfair Display', serif; letter-spacing: 0; }
.dmNote { display: block; }
.craft_sections.-flow.-js .craftSection {
  opacity: 0; transform: translate3d(0, 1.25vw, 0);
  transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.craft_sections.-flow.-js .craftSection.is-in { opacity: 1; transform: none; }
.craft_sections.-flowA { position: relative; }
.craft_sections.-flowA::before,
.craft_sections.-flowA::after { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 100%; background: rgba(217, 215, 212, .2); }
.craft_sections.-flowA::after { background: #d9d7d4; transform-origin: 50% 0; transform: scaleY(var(--dm-p, 1)); }
.craft_sections.-flowA .craftSection { position: relative; }
.craft_sections.-flowA .craftSection::before { content: ""; position: absolute; left: 0; height: 1px; background: #d9d7d4; transform-origin: 0 50%; }
.craft_sections.-flowA.-js .craftSection::before { transform: scaleX(0); transition: transform 1s cubic-bezier(.22, 1, .36, 1) .1s; }
.craft_sections.-flowA.-js .craftSection.is-in::before { transform: none; }
@media (min-width: 768px) {
  .craft_sections.-flowA { display: block; margin-inline-start: 12.5vw; padding-block: 3.75vw; } /* 세로줄은 첫 화면 제목과 같은 17.5vw 선 */
  .craft_sections.-flowA .craftSection { padding-inline-start: 6.25vw; }
  .craft_sections.-flowA .craftSection + .craftSection { margin-block-start: 8.75vw; }
  .craft_sections.-flowA .craftSection::before { top: 1.6vw; width: 3.125vw; }
  .craft_sections.-flowA .craftSection_inner { display: grid; grid-template-columns: 20vw 1fr; align-items: baseline; }
  .craft_sections.-flowA .craftSection_title { grid-template-columns: 5vw 1fr; align-items: baseline; }
  .craft_sections.-flowA .craftSection_titleText { margin-block-start: 0; font-size: clamp(37.5px, 3.125vw, 56.25px); line-height: 1; }
  .craft_sections.-flowA .craftSection_texts { margin-block-start: 0; }
  .craft_sections.-flowA .craftSection_description { font-size: clamp(22.5px, 1.875vw, 33.75px); line-height: 1.4; }
  .craft_sections.-flowA .dmNote { display: inline; }
  .craft_sections.-flowA .dmNote + .dmNote::before { content: "/"; margin-inline: .7em; opacity: .4; }
}
@media (max-width: 767px) {
  .craft_sections.-flow .craftSection_titleText { font-size: 5.97vw; line-height: 1.35; }
  .craft_sections.-flow .craftSection_description { font-size: max(4.2vw, 16px); line-height: 1.9; }
  .craft_sections.-flowA { margin-inline-start: -5vw; padding-block: 5vw; } /* 세로줄은 화면 왼쪽 5.2vw: 고정 로고와 세로 꼬리표(10.2vw부터)를 지나지 않게 */
  .craft_sections.-flowA .craftSection { padding-inline-start: 16vw; }
  .craft_sections.-flowA .craftSection::before { top: 4vw; width: 3vw; }
  .craft_sections.-flowA .craftSection_title { grid-template-columns: 9vw 1fr; align-items: baseline; }
  .craft_sections.-flowA .craftSection_texts { padding-inline-start: 9vw; }
}
/* 영어 노트 아래 작은 한글 */
.craft_sections.-ko .dmNote_en { display: block; }
.craft_sections.-ko .dmNote_ko { display: block; font-family: var(--f-ko); letter-spacing: -0.01em; line-height: 1.5; color: rgba(217, 215, 212, .62); }
@media (min-width: 768px) {
  .craft_sections.-flowA.-ko .dmNote { display: inline-flex; flex-direction: column; position: relative; vertical-align: baseline; }
  .craft_sections.-flowA.-ko .dmNote + .dmNote { margin-inline-start: 2.2em; }
  .craft_sections.-flowA.-ko .dmNote + .dmNote::before { position: absolute; left: -1.35em; top: 0; margin: 0; }
  .craft_sections.-ko .dmNote_ko { font-size: max(.875vw, 13px); margin-block-start: .5vw; }
}
/* 태블릿 폭: 노트 다섯 개가 한 줄에 들어가게 간격과 크기를 줄임 */
@media (min-width: 768px) and (max-width: 1199px) {
  .craft_sections.-flowA.-ko .dmNote + .dmNote { margin-inline-start: 1.25em; }
  .craft_sections.-flowA.-ko .dmNote + .dmNote::before { left: -.8em; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .craft_sections.-flowA.-ko .craftSection_description { font-size: 18px; }
  .craft_sections.-flowA.-ko .dmNote + .dmNote { margin-inline-start: 1.2em; }
  .craft_sections.-flowA.-ko .dmNote + .dmNote::before { left: -.78em; }
}
@media (max-width: 767px) {
  .craft_sections.-ko .craftSection_description { line-height: 1.5; }
  .craft_sections.-ko .dmNote + .dmNote { margin-block-start: 3.6vw; }
  .craft_sections.-ko .dmNote_ko { font-size: max(3.2vw, 13px); margin-block-start: .4vw; }
}
@media (prefers-reduced-motion: reduce) {
  .craft_sections.-flow.-js .craftSection { opacity: 1; transform: none; transition: none; }
  .craft_sections.-flowA::after { transform: none; }
}

/* 메뉴의 향 이름 세 개는 한 줄에 하나씩 */
.nav_subList { grid-template: "school" auto "craft" auto "izanami-space" auto / auto; }
